joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fc50
mov eax, dword fs:[0]
push eax
sub esp, 8
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 ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.00521c5f
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push dword [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp ebx, 0xfe
jne 0x4c6504
add esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521c5a
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00521c5f
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea eax, [esi - 2]
cmp ebx, eax
je 0x4c64b0
mov ecx, dword [ebp + 8]
call fcn.0047dd80
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c65b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor esi, esi
nop dword [eax]
movzx ecx, word [edi + esi*2]
test cx, cx
je 0x4c6544
push ecx
lea ecx, [ebp - 0x10]
call fcn.00492b30
jmp 0x4c655e
cmp dword [eax - 0xc], 0
je 0x4c6556
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0048f3e0
lea ecx, [ebp - 0x10]
call fcn.00412410
inc esi
cmp esi, ebx
ja 0x4c6568
mov eax, dword [ebp - 0x10]
jmp 0x4c6530
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c6587
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x14], 0
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 0x80004005
call fcn.004126a0
int3
Function at 0x4c6800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fda2
mov eax, dword fs:[0]
push eax
sub esp, 8
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 dword [esi], 0x58fa4c
mov dword [ebp - 4], 5
lea ebx, [esi + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c684c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 4
lea eax, [esi + 0x34]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c6876
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c689d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [esi + 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c68c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [esi + 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c68eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c690f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [eax]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4c693a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4c8b10
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 0x4caad0
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560c89
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.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4cac81
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 0x4cab54
push 0x64
lea ecx, [ebp - 0x10]
call fcn.00412580
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x64
jl 0x4cac95
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.005295a5
add esp, 8
test eax, eax
js 0x4cac95
cmp eax, dword [esi - 8]
jg 0x4cac95
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4cac8b
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 0x4cabdb
push 0x64
mov ecx, edi
call fcn.00412580
mov ecx, dword [edi]
cmp dword [ecx - 8], 0x64
jl 0x4cac95
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 0x4cac11
xor ecx, ecx
jmp 0x4cac23
push dword [eax - 8]
push eax
call fcn.005295a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4cac95
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4cac95
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
push 1
push 0x584bd8
mov word [eax + ecx*2], dx
mov ecx, edi
call fcn.00416df0
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00416df0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cac6d
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.004126a0
push 0x80004005
call fcn.004126a0
push 0x80070057
call fcn.004126a0
int3
Function at 0x4cb5d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560e70
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 0x4cb613
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 0x4cb66d
cmp dword [edi + 0xc], 0
jl 0x4cb662
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4cb662
call fcn.0040a1d0
mov dword [ebp + 0xc], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cb65b
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 0x4cb66d
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.004126c0
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004cbff0
mov dword [ebp - 4], 0
mov al, byte [esi + 1]
test al, al
je 0x4cb6b3
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 0x4cb6ce
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 0x4cb6f9
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 0x4cbd90
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5610b9
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 0x4cbe13
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4cbe13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4cbe13
cmp byte [esi + 0x11], 0
jne 0x4cbe13
mov ecx, dword [ebp + 8]
call fcn.00411710
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 edx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [esi + 0xc]
shr edx, 1
mov word [ecx + edx*2], di
test eax, eax
je 0x4cbea6
cmp dword [ebp + 0x10], edi
je 0x4cbea6
push dword [esi + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004127e0
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040a1d0
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 0x4cbe91
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.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4cbee1
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.004126a0
int3
Function at 0x4cbef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552d41
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 0x4cbf65
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4cbfdf
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 0x4cbfae
mov ecx, dword [ebp + 8]
call fcn.00411710
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.004cbd90
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.004126a0
int3
Function at 0x4cc5a0
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 0x561270
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], 0x57dd34
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x4cc731
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4cc731
mov eax, dword [ebp + 0x78]
cmp ebx, eax
jbe 0x4cc731
sub ebx, eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 0x10000
call fcn.004b32b0
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x4cc655
xor bl, bl
jmp 0x4cc71b
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 0x4cc6c9
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4cc6c9
lea eax, [ecx + edi]
cmp eax, ebx
jbe 0x4cc6b6
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.0051d090
add edi, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
je 0x4cc684
lea ecx, [ebp]
call fcn.0051d160
cmp byte [ebp + 0x68], 0
jne 0x4cc6db
xor bl, bl
jmp 0x4cc718
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 0x4cc6e0
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.00521c5a
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x4cc733
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x57dd34
test edi, edi
je 0x4cc753
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.005214e1
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x4d0920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561cd8
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 esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
cmp dword [eax], 0
je 0x4d0983
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, dword [esi + 0x18]
je 0x4d0976
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 - 0x1c]
push eax
push 0
push esi
push 0x4d0cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x34], 0x57dd34
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4d0aa4
mov eax, dword [esi + 8]
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x14], xmm0
mov edx, dword [eax + 4]
test edx, edx
jle 0x4d0a11
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
nop dword [eax]
test ecx, ecx
js 0x4d0af7
cmp ecx, edx
jge 0x4d0af7
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
add edi, dword [eax + 0x250]
mov dword [ebp - 0x10], edi
adc ebx, dword [eax + 0x254]
inc ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], ebx
cmp ecx, edx
jl 0x4d09e0
jmp 0x4d0a1d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov edx, dword [esi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
xor ecx, ecx
mov ebx, dword [ebp - 0x2c]
mov edi, dword [edx + 4]
test edi, edi
jle 0x4d0a85
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x4d0a43
mov edx, dword [esi + 4]
test ecx, ecx
js 0x4d0af7
cmp ecx, edi
jge 0x4d0af7
mov eax, dword [edx]
mov edx, dword [eax + ecx*4]
test edx, edx
js 0x4d0af7
mov eax, dword [esi]
cmp edx, dword [eax + 0x7c]
jge 0x4d0af7
mov eax, dword [eax + 0x78]
shl edx, 5
add ebx, dword [edx + eax + 0xc]
mov edx, dword [ebp + 8]
adc edx, 0
inc ecx
mov dword [ebp + 8], edx
cmp ecx, edi
jl 0x4d0a40
jmp 0x4d0a88
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add ebx, dword [ebp - 0x10]
adc edx, dword [ebp - 0x18]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x24]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 0x57dd34
test ebx, ebx
je 0x4d0ae1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 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.0040db10
int3
Function at 0x4d0d00
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561d49
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.00490ee0
mov ebx, eax
mov eax, dword [0x5d6e78]
test al, 1
jne 0x4d0db8
or eax, 1
mov dword [0x5d6e78], eax
mov dword [ebp - 4], 0
push 0x104
push 0
push 0x5d6e8c
mov dword [0x5d6e80], 0xa
mov dword [0x5d6e84], 0
mov dword [0x5d6e88], 0
call fcn.00523880
add esp, 0xc
mov dword [0x5d6f90], 1
mov word [0x5d6f94], 0
push 0
push 0x100
push 0x5d6e90
call fcn.00498f10
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
cmp eax, dword [0x5d6e80]
jae 0x4d0dc6
xor al, al
jmp 0x4d0dfb
ja 0x4d0df9
mov eax, dword [ebx + 4]
cmp eax, dword [0x5d6e84]
jae 0x4d0dd7
xor al, al
jmp 0x4d0dfb
ja 0x4d0df9
mov eax, dword [ebx + 0xc]
cmp eax, dword [0x5d6e8c]
jae 0x4d0de8
xor al, al
jmp 0x4d0dfb
ja 0x4d0df9
mov eax, dword [ebx + 8]
cmp eax, dword [0x5d6e88]
jae 0x4d0df9
xor al, al
jmp 0x4d0dfb
mov al, 1
test al, al
je 0x4d0f72
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 0x4d0e2b
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4d0e21
xor edx, edx
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], dx
je 0x4d0e52
nop dword [eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x4d0e40
cmp ecx, edx
jb 0x4d0f72
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.004916a0
mov ecx, eax
test ecx, ecx
je 0x4d0e87
nop word [eax + eax]
mov ax, word [edi + edx*2]
cmp ax, word [ebp + edx*2 - 0x21c]
jne 0x4d0f72
inc edx
cmp edx, ecx
jb 0x4d0e70
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00523880
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.00523880
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.004d0ff0
mov dword [ebp - 0x634], 0
mov byte [ebp - 0x630], 0
mov dword [ebp - 4], 1
call fcn.004cc820
mov eax, dword [0x5d638c]
test eax, eax
je 0x4d0f24
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 0x4d0f42
push edi
mov ecx, esi
call fcn.004d0ff0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x630], 0
je 0x4d0f7e
call fcn.004cc820
mov eax, dword [0x5d6390]
test eax, eax
je 0x4d0f7e
lea ecx, [ebp - 0x634]
push ecx
call eax
mov byte [ebp - 0x630], 0
jmp 0x4d0f7e
push edi
mov ecx, esi
call fcn.004d0ff0
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.005214e1
mov esp, ebp
pop ebp
ret 4
Function at 0x4d1150
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561d90
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.004d0d00
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 0x4d120e
push eax
lea ecx, [ebp - 0x14]
call fcn.004b32b0
mov esi, dword [ebp - 0x14]
test al, al
jne 0x4d11c1
mov edi, 8
jmp 0x4d1216
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4d120e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x584bd8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4d1216
cmp dword [ebp - 0x24], 0
je 0x4d1216
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d1200
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d1216
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4d1216
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x4d1227
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00521c5a
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00521c5a
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