joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce960
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x4ceb15
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x4ce9d8
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x4ce9d0
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4ce9e4
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4cea2a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x4ceaae
lea ecx, [ebp - 0x21c]
call fcn.004ceb20
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x4cea69
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x4cea60
movzx eax, word [ecx]
test ax, ax
je 0x4cea82
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4cea73
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ceae4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ceae4
cmp word [esi], 0
je 0x4ceabd
add esi, 2
cmp word [esi], 0
jne 0x4ceab4
movzx eax, word [ecx]
test ax, ax
je 0x4ceadf
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4cead0
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4ceaf0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004098b0
mov al, 1
jmp 0x4cea0c
call fcn.0052e542
int3
Function at 0x4cfc60
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574bd5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.004d01e0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call fcn.00529170
mov bl, al
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4cfcc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4cfd36
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
jne 0x4cfd36
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
jle 0x4cfcfb
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]
test eax, eax
je 0x4cfd23
cmp eax, 0xea
jne 0x4cfd2d
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d03a0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x574e0d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4d040c
xor al, al
jmp 0x4d054b
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x4d041f
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc8
push eax
lea eax, [ebp]
push eax
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4d044f
cmp dword [ebp - 0x18], 0xc8
jbe 0x4d053d
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4d056e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4d04ce
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
test edx, edx
js 0x4d0578
cmp word [ecx], 0x22
je 0x4d04ce
test edx, edx
jle 0x4d04ce
push 0x20
push ecx
call fcn.0052f665
add esp, 8
test eax, eax
je 0x4d04ce
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4d04ce
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004982a0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00419d30
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004982a0
jmp 0x4d04d7
push esi
lea ecx, [ebp - 0x10]
call fcn.0047f480
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4d04f8
js 0x4d0578
cmp word [ecx], 0x20
je 0x4d04f8
push 0x20
lea ecx, [ebp - 0x10]
call fcn.004982a0
mov ecx, dword [ebx]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00419d30
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d053d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0052df57
lea esp, [ebp + 0x194]
pop ebp
ret
push 0x80004005
call fcn.00409a00
push 0x80070057
call fcn.00409a00
int3
Function at 0x4d0590
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574e7e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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.00409d30
test eax, eax
je 0x4d0741
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 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 0x4d0614
push 0x64
lea ecx, [ebp - 0x10]
call fcn.00409790
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x64
jl 0x4d074b
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.00535a1f
add esp, 8
test eax, eax
js 0x4d074b
cmp eax, dword [esi - 8]
jg 0x4d074b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00409d30
test eax, eax
je 0x4d0741
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 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 0x4d069b
push 0x64
mov ecx, edi
call fcn.00409790
mov ecx, dword [edi]
cmp dword [ecx - 8], 0x64
jl 0x4d074b
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 0x4d06d1
xor ecx, ecx
jmp 0x4d06e3
push dword [eax - 8]
push eax
call fcn.00535a1f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4d074b
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4d074b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
push 1
push 0x59a78c
mov word [eax + ecx*2], dx
mov ecx, edi
call fcn.00419d30
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00419d30
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d072d
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.00409a00
push 0x80070057
call fcn.00409a00
int3
Function at 0x4d2000
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575275
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi], 0
je 0x4d2041
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 8]
lea ecx, [esi + 4]
push dword [ebp + 0xc]
mov byte [esi + 1], al
call fcn.0047f480
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004d2970
mov dword [ebp - 4], 0
mov al, byte [esi + 1]
test al, al
je 0x4d2098
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 0x4d20b3
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 eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d20de
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d2720
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575506
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5e8024]
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 0x4d2798
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4d2798
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4d2798
cmp byte [esi + 0x11], 0
jne 0x4d2798
call fcn.00409d30
test eax, eax
je 0x4d2867
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4d2844
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 0x4d282c
cmp dword [ebp + 0x10], edi
je 0x4d282c
push dword [esi + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00416070
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00409540
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
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 0x4d2817
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.00409d30
mov ecx, eax
test ecx, ecx
je 0x4d2867
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.00409a00
int3
Function at 0x4d2880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f8ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5e8024]
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 0x4d28f5
call fcn.00409d30
test eax, eax
je 0x4d295d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 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 0x4d292c
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4d295d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4d28d2
push 1
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004d2720
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.00409a00
int3
Function at 0x4d2f20
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 0x5756e5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5e8024]
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 - 0x1c], 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 esi, eax
mov dword [ebp - 0x24], 0x5935fc
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x4d30b1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4d30b1
mov eax, dword [ebp + 0x78]
cmp edi, eax
jbe 0x4d30b1
sub edi, eax
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0x10000
call fcn.004b89e0
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x4d2fd5
xor bl, bl
jmp 0x4d3098
xor ebx, ebx
mov dword [ebp], 0x67452301
mov dword [ebp - 0x10], ebx
mov byte [ebp + 0x68], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
nop
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d3045
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4d3045
lea eax, [ecx + ebx]
cmp eax, edi
ja 0x4d3036
push ecx
push esi
lea ecx, [ebp]
call fcn.00529980
add ebx, dword [ebp - 0x10]
jmp 0x4d3000
sub edi, ebx
lea ecx, [ebp]
push edi
push esi
mov dword [ebp - 0x10], edi
call fcn.00529980
lea ecx, [ebp]
call fcn.00529a50
cmp byte [ebp + 0x68], 0
jne 0x4d3057
xor bl, bl
jmp 0x4d3098
mov esi, dword [ebp - 0x1c]
xor edi, edi
nop dword [eax]
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 0x4d3060
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
push esi
call fcn.0052e812
mov esi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x4d30b3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x5935fc
test esi, esi
je 0x4d30d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 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.0052df57
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x4d6e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5762cd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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 0x4d6ea3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, dword [esi + 0x18]
je 0x4d6e96
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 - 0x14]
push eax
push 0
push esi
push 0x4d71c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x34], 0x5935fc
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 0x4d6f97
mov ebx, dword [esi + 8]
xor ecx, ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp dword [ebx + 4], ecx
jle 0x4d6f1f
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
nop word [eax + eax]
mov eax, dword [ebx]
mov eax, dword [eax + ecx*4]
add edi, dword [eax + 0x250]
adc edx, dword [eax + 0x254]
inc ecx
cmp ecx, dword [ebx + 4]
jl 0x4d6f00
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edx
jmp 0x4d6f2b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov ebx, dword [esi]
xor ecx, ecx
movlpd qword [ebp - 0x2c], xmm0
mov edi, dword [ebp - 0x28]
mov edx, dword [eax + 4]
test edx, edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x2c]
jle 0x4d6f7b
nop word [eax + eax]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x4d6fe8
cmp eax, dword [ebx + 0x7c]
jge 0x4d6fe8
shl eax, 5
add eax, dword [ebx + 0x78]
add edx, dword [eax + 0xc]
mov eax, dword [esi + 4]
adc edi, 0
inc ecx
cmp ecx, dword [ebp - 0x18]
jl 0x4d6f50
add edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
adc edi, dword [ebp - 0x10]
push edi
push edx
mov eax, dword [ecx]
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 - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 0x5935fc
test ebx, ebx
je 0x4d6fd2
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.00412050
int3
Function at 0x4d7660
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576395
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
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.004d71d0
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 0x4d771e
push eax
lea ecx, [ebp - 0x14]
call fcn.004b89e0
mov esi, dword [ebp - 0x14]
test al, al
jne 0x4d76d1
mov edi, 8
jmp 0x4d7726
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4d771e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x59a78c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4d7726
cmp dword [ebp - 0x24], 0
je 0x4d7726
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d7710
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d7726
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4d7726
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x4d7737
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0052e812
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0052e812
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
Function at 0x4d79b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e530
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], 0x5a65f0
test eax, eax
je 0x4d7a28
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 8], 0xffffffff
je 0x4d7a1f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4d7a1f
cmp dword [ebp - 0x10], 0x103
jne 0x4d7a1f
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret