joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb87e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
push edi
mov edi, ecx
test esi, esi
jne 0x4bb8b0
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.004be10f
xor al, al
jmp 0x4bb9ea
call fcn.004bafe0
or dword [edi + 8], 0xffffffff
xor ebx, ebx
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.004d25fe
push esi
call fcn.004d2a11
push ebx
push ebx
push esi
mov dword [ebp - 0x24], eax
call fcn.004d25fe
mov esi, dword [ebp - 0x24]
add esp, 0x1c
test esi, esi
jne 0x4bb8ec
push ebx
push ebx
push ebx
push 0xd
mov ecx, edi
jmp 0x4bb8a4
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call fcn.0040e9f0
lea eax, [esi + 1]
push eax
call fcn.004cdcd1
push dword [ebp - 0x2c]
mov esi, eax
push 1
push dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
push esi
mov byte [esi], bl
call fcn.004d24c3
add esp, 0x14
cmp eax, 1
je 0x4bb940
push esi
call fcn.004cdcda
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.004be10f
jmp 0x4bb9d3
mov edx, dword [ebp - 0x24]
mov ecx, esi
mov eax, ecx
mov byte [eax + edx], bl
cmp byte [eax], bl
je 0x4bb9a0
mov al, byte [esi]
cmp al, 0xa
jne 0x4bb966
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404ed0
inc esi
jmp 0x4bb997
cmp al, 0xd
jne 0x4bb99b
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x4bb97c
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404ed0
push 0xa
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404fc0
lea eax, [esi + 1]
cmp byte [eax], 0xa
jne 0x4bb995
add esi, 2
jmp 0x4bb997
mov esi, eax
mov ecx, esi
jmp 0x4bb99c
inc esi
cmp byte [esi], bl
jne 0x4bb94e
sub esi, ecx
je 0x4bb9ae
push esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404ed0
push dword [ebp - 0x28]
call fcn.004cdcda
cmp dword [ebp - 8], 0x10
mov eax, dword [edi]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ebx
push ecx
mov ecx, edi
call dword [eax + 8]
cmp byte [edi + 0x40], bl
je 0x4bb9d8
mov byte [ebp - 0x1d], bl
jmp 0x4bb9dc
mov byte [ebp - 0x1d], 1
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00405210
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
Function at 0x4bfa43
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.004a93e6
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4bfaf0
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4bfaef
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.004a989a
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bfaef
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4bfaef
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x4bfaa4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.004bf708
test esi, esi
je 0x4bfaec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c00ba
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x248], eax
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x230], ebx
call fcn.004ce800
add esp, 0xc
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c012b
xor eax, eax
jmp 0x4c02a1
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4c027f
test esi, esi
je 0x4c015a
push esi
call edi
xor esi, esi
cmp dword [ebp - 0x234], 0
je 0x4c0172
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004d08a4
pop ecx
pop ecx
test eax, eax
jne 0x4c023c
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4c023c
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x240], eax
jne 0x4c023c
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4c023c
lea eax, [ebp - 0x234]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c023c
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x23c]
and dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x238]
push eax
push 1
push dword [ebp - 0x234]
call fcn.004bfea0
add esp, 0x10
test eax, eax
je 0x4c023c
mov eax, dword [ebp - 0x238]
push dword [eax]
call fcn.004bffd0
pop ecx
push dword [ebp - 0x238]
test eax, eax
je 0x4c0253
call fcn.004bfe22
and dword [ebp - 0x238], 0
pop ecx
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4c0151
jmp 0x4c0278
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x244], 1
mov dword [ecx], eax
call fcn.004bfe22
and dword [ebp - 0x238], 0
pop ecx
test esi, esi
je 0x4c027f
push esi
call edi
cmp dword [ebp - 0x234], 0
je 0x4c0297
push dword [ebp - 0x234]
call edi
and dword [ebp - 0x234], 0
push ebx
call edi
mov eax, dword [ebp - 0x244]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
Function at 0x4c2979
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x54e0a0]
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.004ce800
add esp, 0xc
lea ecx, [ebp - 0x260]
push esi
call fcn.004a6716
call fcn.004a7279
push eax
lea ecx, [ebp - 0x258]
call fcn.004a6656
push 0x529f0c
mov edi, 0x104
lea ecx, [ebp - 0x260]
push edi
call fcn.004a7abd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x260]
call fcn.004ad5d5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c2a53
mov edi, dword [ebp - 0x258]
lea ecx, [edi - 0x10]
call fcn.004a7be5
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004a7be5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
mov edi, 0x104
push esi
lea ecx, [ebp - 0x258]
call fcn.004a7d2e
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x258]
call fcn.004a7abd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004ad5d5
push dword [ebp - 0x268]
lea ecx, [ebp - 0x25c]
call fcn.004a6716
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.004a7abd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.004ad5d5
test byte [ebp - 0x254], 0x10
mov edi, dword [ebp - 0x258]
mov esi, dword [ebp - 0x25c]
je 0x4c2b4f
lea eax, [ebp - 0x228]
push 0x525680
push eax
call fcn.004cde58
pop ecx
pop ecx
test eax, eax
je 0x4c2b12
lea eax, [ebp - 0x228]
push 0x52566c
push eax
call fcn.004cde58
pop ecx
pop ecx
test eax, eax
je 0x4c2b12
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x4c2b1d
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
jmp 0x4c2b5c
cmp dword [ebp + 0x10], 0
je 0x4c2b59
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c2b35
push esi
call fcn.004c2c39
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4c2b59
push dword [ebp + 0x10]
push esi
push edi
call fcn.004c2979
add esp, 0xc
jmp 0x4c2b59
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esi - 0x10]
call fcn.004a7be5
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [ebp - 0x264]
test eax, eax
jne 0x4c2a4e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4c2a25
Function at 0x4c2b89
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.004a6716
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004a6716
lea eax, [ebp - 8]
push eax
call fcn.004c6d8e
mov edi, dword [ebp - 8]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4c2bc7
mov esi, dword [ebp - 4]
jmp 0x4c2c1f
push ebx
push edi
call fcn.004c6a46
pop ecx
pop ecx
test eax, eax
jne 0x4c2c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c2c1a
lea eax, [ebp - 4]
push eax
call fcn.004c6e01
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], ebx
je 0x4c2c20
push esi
call fcn.004c2b89
pop ecx
test eax, eax
je 0x4c2c20
push ebx
push edi
call fcn.004c6a46
pop ecx
pop ecx
test eax, eax
jne 0x4c2c1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c2c1d
jmp 0x4c2c20
mov esi, dword [ebp - 4]
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.004a7be5
lea ecx, [esi - 0x10]
call fcn.004a7be5
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c34b3
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
jmp 0x4c3485
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.004c33fe
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c34c4
lea eax, [ebp - 0x414]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4c3450
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4c34b3
Function at 0x4c34e6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54e0a0]
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.004ce7ef
mov esp, ebp
pop ebp
ret

Function at 0x4c3a23
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x54e0a0]
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.004a6c26
add eax, 0x10
mov dword [esp], 0x529a98
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], eax
call fcn.004a6a09
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 0x4c3ab2
xor eax, eax
mov ecx, edi
push eax
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004c88a2
lea ecx, [esi - 0x10]
mov dword [edi], eax
call fcn.004a7be5
lea ecx, [ebp + 0x10]
call fcn.004c9843
lea ecx, [ebp + 0x10]
call fcn.004c9843
jmp 0x4c3be9
xor eax, eax
lea ecx, [ebp - 0x260]
push ebx
push eax
push eax
mov dword [ebp - 0x25c], eax
call fcn.004c88a2
mov ebx, eax
mov dword [ebp - 0x260], ebx
test byte [ebp - 0x254], 0x10
je 0x4c3b84
cmp dword [ebp + 0x20], 0
lea eax, [ebp - 0x228]
push eax
jne 0x4c3b10
lea ecx, [ebp - 0x258]
call fcn.004a6716
lea eax, [ebp - 0x258]
push eax
push ebx
lea ecx, [ebp - 0x260]
call fcn.004c0b99
mov ecx, dword [ebp - 0x258]
jmp 0x4c3b76
lea ecx, [ebp - 0x268]
call fcn.004a6716
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x4c3bfb
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.004a7be5
test bl, bl
je 0x4c3b7e
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x264]
call fcn.004a6716
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.004c0b99
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004a7be5
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 0x4c3ad0
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x260]
mov ecx, edi
push eax
call fcn.004c1d29
lea ecx, [ebp - 0x260]
call fcn.004c9a36
push dword [ebp - 0x260]
call fcn.004cdb8c
pop ecx
lea ecx, [esi - 0x10]
call fcn.004a7be5
lea ecx, [ebp + 0x10]
call fcn.004c9843
lea ecx, [ebp + 0x10]
call fcn.004c9843
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
call fcn.00502695
int3
Function at 0x4c3d9c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x550fd0]
push esi
xor esi, esi
test al, 1
jne 0x4c3de6
or eax, 1
mov dword [0x550fcc], 7
mov dword [0x550fd0], eax
xor eax, eax
push 0x524390
mov dword [0x550fc8], esi
mov word [0x550fb8], ax
call fcn.004cdcbc
pop ecx
cmp dword [0x550fc8], esi
je 0x4c3df8
mov eax, 0x550fb8
jmp 0x4c3eb4
push ebx
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004ce800
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x550fb8
test eax, eax
je 0x4c3eb0
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004cddaa
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 0x4c3eb0
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x529d24
push ebx
push eax
call fcn.004c7bf5
add esp, 0x10
cmp word [ebp - 0x20c], si
je 0x4c3ea1
lea eax, [ebp - 0x20c]
push eax
call fcn.004cde96
pop ecx
mov esi, eax
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, edi
call fcn.00406340
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret

Function at 0x4c4522
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54e0a0]
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 0x4c45d5
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.004c45e8
add esp, 0xc
test al, al
je 0x4c45d5
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004ce800
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.004d1b8f
add esp, 0x28
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004a7d2e
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
Function at 0x4c45e8
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 0x4c466f
push esi
push edi
call fcn.004cdcd1
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 0x4c4663
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x53b478
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4c4663
cmp dword [ebp - 8], ebx
je 0x4c4663
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 0x4c466e
push esi
call fcn.004cdcda
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c4717
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x54e0a0]
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 0x4c478b
push str._cid
push eax
call fcn.004d134c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c478b
add esi, 0xa
push 0x20
push esi
call fcn.004cddaa
pop ecx
pop ecx
test eax, eax
jne 0x4c4779
push esi
call fcn.004cde96
pop ecx
lea eax, [esi + eax*2]
sub eax, esi
mov ecx, ebx
sar eax, 1
push eax
push esi
call fcn.004a7d57
jmp 0x4c481d
push dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
call fcn.004a6716
push 0x53b478
lea ecx, [ebp - 0x7c]
call fcn.004a6a09
push str.ProductInfo.xml
lea ecx, [ebp - 0x7c]
call fcn.004a6a09
lea ecx, [ebp - 0x78]
call fcn.004bef3c
mov esi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x78]
push esi
call fcn.004bf33d
test eax, eax
je 0x4c480d
push edi
push str.packetcid
lea ecx, [ebp - 0x78]
call fcn.004bf457
test eax, eax
je 0x4c47e8
push ebx
push 0x529d00
lea ecx, [ebp - 0x78]
call fcn.004bf5e8
push edi
push str.packet_scid
lea ecx, [ebp - 0x78]
call fcn.004bf457
test eax, eax
je 0x4c480d
push dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push 0x529d10
call fcn.004bf5e8
lea ecx, [ebp - 0x78]
call fcn.004ba928
lea ecx, [esi - 0x10]
call fcn.004a7be5
mov eax, dword [0x550f9c]
cmp dword [eax - 0xc], edi
je 0x4c4833
push 0x550f9c
mov ecx, ebx
call fcn.004a680f
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x4c4901
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004c415b
mov esi, dword [ebp - 0x84]
push 0x5f
push esi
call fcn.004cdece
add esp, 0x10
test eax, eax
je 0x4c48f9
sub eax, esi
sar eax, 1
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x4c48f9
call fcn.004a7279
push eax
lea ecx, [ebp - 0x7c]
call fcn.004a6656
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.004a7766
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004a680f
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.004a7be5
push edi
push str..exe
lea ecx, [ebp - 0x7c]
call fcn.004c3761
push eax
push edi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004a7766
push eax
lea ecx, [ebp - 0x7c]
call fcn.004a680f
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.004a7be5
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.004a680f
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx - 0x10]
call fcn.004a7be5
lea ecx, [esi - 0x10]
call fcn.004a7be5
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x4c4940
push str.mktpublic
call fcn.004ced70
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x4c4938
lea eax, [esi + esi]
call fcn.004cf680
mov eax, esp
push 3
push esi
push str.mktpublic
push eax
call fcn.004a92d5
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a7d2e
lea esp, [ebp - 0x90]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
Function at 0x4c6a46
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 0x4c6a79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4c6a84
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebx
pop ebp
ret

Function at 0x4c6b4b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x54e0a0]
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.004ce800
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c6b99
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret

Function at 0x4c6e4a
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 0x4c6eca
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
mov dword [edi + 4], eax
jne 0x4c6eca
mov ecx, dword [ebp + 0xc]
call fcn.004a7045
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.004a7abd
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]
mov dword [edi + 4], eax
test eax, eax
jne 0x4c6eca
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
shr eax, 1
push 0xffffffffffffffff
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
call fcn.004ad5d5
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8