joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8760
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
mov esi, ecx
mov edx, dword [eax]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edx - 0xc]
add eax, eax
push eax
push edx
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
ret 4

Function at 0x4ca1f0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5608d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00490fe0
test al, al
je 0x4ca2d5
call fcn.0051c700
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.004ca030
mov dword [ebp - 4], 0
mov edi, dword [eax]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
push 0x57dc80
push 1
push 0
push 0x57dca0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4ca27b
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ca277
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor bl, bl
jmp 0x4ca29b
mov eax, dword [ebp - 0x10]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
setns bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ca29b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ca2bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4ca2d5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ca308
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
jle 0x4ca31b
lea esi, [esi + eax*2]
add esi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4ca346
cmp edi, 0xea
jne 0x4ca352
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ca5c0
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560969
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4ca771
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
mov ebx, 1
mov dword [ebp - 0x14], 0x64
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x4ca644
push 0x64
lea ecx, [ebp - 0x10]
call fcn.00414280
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x64
jl 0x4ca785
xor eax, eax
mov dword [esi - 0xc], 0x64
mov word [esi + 0xc8], ax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [esi - 8]
push esi
call fcn.00528cc5
add esp, 8
test eax, eax
js 0x4ca785
cmp eax, dword [esi - 8]
jg 0x4ca785
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4ca77b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], 1
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x64
or eax, ebx
jge 0x4ca6cb
push 0x64
mov ecx, edi
call fcn.00414280
mov ecx, dword [edi]
cmp dword [ecx - 8], 0x64
jl 0x4ca785
mov dword [ecx - 0xc], 0x64
xor edx, edx
mov eax, dword [edi]
push 0x64
push ecx
push str.UserDomain
mov word [eax + 0xc8], dx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi]
test eax, eax
jne 0x4ca701
xor ecx, ecx
jmp 0x4ca713
push dword [eax - 8]
push eax
call fcn.00528cc5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4ca785
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4ca785
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
push 1
push 0x584d0c
mov word [eax + ecx*2], dx
mov ecx, edi
call fcn.00418250
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00418250
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ca75d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
push 0x80070057
call fcn.004143a0
int3
Function at 0x4cb0b0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560b50
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi], 0
je 0x4cb0f3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 8]
lea ebx, [esi + 4]
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx]
sub edi, 0x10
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4cb14d
cmp dword [edi + 0xc], 0
jl 0x4cb142
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4cb142
call fcn.0040be70
mov dword [ebp + 0xc], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cb13b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4cb14d
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.004143c0
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004cbad0
mov dword [ebp - 4], 0
mov al, byte [esi + 1]
test al, al
je 0x4cb193
push 0
push 0x1388
push 0x7f90
push 0x7f90
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
mov al, byte [esi + 1]
test al, al
jne 0x4cb1ae
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
setne bl
mov byte [esi], bl
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4cb1d9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cb870
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560d99
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
jne 0x4cb8f3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4cb8f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4cb8f3
cmp byte [esi + 0x11], 0
jne 0x4cb8f3
mov ecx, dword [ebp + 8]
call fcn.00413410
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
and ecx, 0xfffffffe
mov word [edx + ecx], di
test eax, eax
je 0x4cb987
cmp dword [ebp + 0x10], edi
je 0x4cb987
push dword [esi + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004144e0
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040be70
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cb972
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cb9c2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004143a0
int3
Function at 0x4cb9d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552c11
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x4cba45
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cbabf
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cba8e
mov ecx, dword [ebp + 8]
call fcn.00413410
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 1
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004cb870
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004143a0
int3
Function at 0x4cc080
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x560f50
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x28], 0x57dd44
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x4cc211
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4cc211
mov eax, dword [ebp + 0x78]
cmp ebx, eax
jbe 0x4cc211
sub ebx, eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 0x10000
call fcn.004b2f10
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x4cc135
xor bl, bl
jmp 0x4cc1fb
xor edi, edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], edi
mov byte [ebp + 0x68], 0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cc1a9
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4cc1a9
lea eax, [ecx + edi]
cmp eax, ebx
jbe 0x4cc196
mov ecx, ebx
mov byte [ebp - 0xd], 1
sub ecx, edi
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.0051c7d0
add edi, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
je 0x4cc164
lea ecx, [ebp]
call fcn.0051c8a0
cmp byte [ebp + 0x68], 0
jne 0x4cc1bb
xor bl, bl
jmp 0x4cc1f8
mov esi, dword [ebp - 0x20]
xor edi, edi
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x4cc1c0
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
push esi
call fcn.00521576
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x4cc213
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x57dd44
test edi, edi
je 0x4cc233
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.00520c02
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x4d0520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561a98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
cmp dword [eax], 0
je 0x4d0586
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, dword [esi + 0x18]
je 0x4d0579
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x14]
call dword [edx + 4]
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x10]
push dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x4d08e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x38], 0x57dd44
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4d069c
mov eax, dword [esi + 8]
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x18], xmm0
mov edx, dword [eax + 4]
test edx, edx
jle 0x4d0611
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
nop dword [eax]
test ecx, ecx
js 0x4d06ef
cmp ecx, edx
jge 0x4d06ef
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
add edi, dword [eax + 0x250]
mov dword [ebp - 0x14], edi
adc ebx, dword [eax + 0x254]
inc ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x1c], ebx
cmp ecx, edx
jl 0x4d05e0
jmp 0x4d061d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp + 8], eax
xor ecx, ecx
mov eax, dword [esi + 4]
movlpd qword [ebp - 0x30], xmm0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov edx, dword [eax + 4]
test edx, edx
jle 0x4d0680
nop dword [eax]
test ecx, ecx
js 0x4d06ef
cmp ecx, edx
jge 0x4d06ef
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x4d06ef
mov esi, dword [ebp + 8]
cmp eax, dword [esi + 0x7c]
jge 0x4d06ef
shl eax, 5
add eax, dword [esi + 0x78]
mov esi, dword [ebp - 0x10]
add edi, dword [eax + 0xc]
mov eax, dword [esi + 4]
adc ebx, 0
inc ecx
cmp ecx, edx
jl 0x4d0640
mov ecx, dword [ebp - 0x24]
add edi, dword [ebp - 0x14]
adc ebx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], 0x57dd44
test ebx, ebx
je 0x4d06d9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.0040f790
int3
Function at 0x4d08f0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561b09
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esi], 0
call fcn.004911f0
mov ebx, eax
mov eax, dword [0x5d6f28]
test al, 1
jne 0x4d09a8
or eax, 1
mov dword [0x5d6f28], eax
mov dword [ebp - 4], 0
push 0x104
push 0
push 0x5d6f3c
mov dword [0x5d6f30], 0xa
mov dword [0x5d6f34], 0
mov dword [0x5d6f38], 0
call fcn.00522fa0
add esp, 0xc
mov dword [0x5d7040], 1
mov word [0x5d7044], 0
push 0
push 0x100
push 0x5d6f40
call fcn.00486590
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
cmp eax, dword [0x5d6f30]
jae 0x4d09b6
xor al, al
jmp 0x4d09eb
ja 0x4d09e9
mov eax, dword [ebx + 4]
cmp eax, dword [0x5d6f34]
jae 0x4d09c7
xor al, al
jmp 0x4d09eb
ja 0x4d09e9
mov eax, dword [ebx + 0xc]
cmp eax, dword [0x5d6f3c]
jae 0x4d09d8
xor al, al
jmp 0x4d09eb
ja 0x4d09e9
mov eax, dword [ebx + 8]
cmp eax, dword [0x5d6f38]
jae 0x4d09e9
xor al, al
jmp 0x4d09eb
mov al, 1
test al, al
je 0x4d0b62
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x4d0a1b
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4d0a11
xor edx, edx
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], dx
je 0x4d0a42
nop dword [eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x4d0a30
cmp ecx, edx
jb 0x4d0b62
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.004868a0
mov ecx, eax
test ecx, ecx
je 0x4d0a77
nop word [eax + eax]
mov ax, word [edi + edx*2]
cmp ax, word [ebp + edx*2 - 0x21c]
jne 0x4d0b62
inc edx
cmp edx, ecx
jb 0x4d0a60
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00522fa0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.00522fa0
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
push 0
push str.shim_clone
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x62c]
mov ecx, esi
push eax
call fcn.004d0be0
mov dword [ebp - 0x634], 0
mov byte [ebp - 0x630], 0
mov dword [ebp - 4], 1
call fcn.004cc300
mov eax, dword [0x5d63e4]
test eax, eax
je 0x4d0b14
lea ecx, [ebp - 0x634]
push ecx
call eax
mov byte [ebp - 0x630], 1
push 0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [esi + 4], al
je 0x4d0b32
push edi
mov ecx, esi
call fcn.004d0be0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x630], 0
je 0x4d0b6e
call fcn.004cc300
mov eax, dword [0x5d63e8]
test eax, eax
je 0x4d0b6e
lea ecx, [ebp - 0x634]
push ecx
call eax
mov byte [ebp - 0x630], 0
jmp 0x4d0b6e
push edi
mov ecx, esi
call fcn.004d0be0
mov byte [esi + 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0d40
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561b50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.004d08f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4d0dfe
push eax
lea ecx, [ebp - 0x14]
call fcn.004b2f10
mov esi, dword [ebp - 0x14]
test al, al
jne 0x4d0db1
mov edi, 8
jmp 0x4d0e06
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4d0dfe
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x584d0c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4d0e06
cmp dword [ebp - 0x24], 0
je 0x4d0e06
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d0df0
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d0e06
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4d0e06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x4d0e17
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00521576
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00521576
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret