joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4480
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5683c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5d86f0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push 0x5c057c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.004e8990
lea eax, [esp + 0x54]
mov dword [esp + 0x68], 0
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4e45ca
lea eax, [esi + 1]
push eax
call fcn.0054170e
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push dword [esp + 0x20]
mov dword [ebx], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e45ca
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x54], 0
push eax
push 0x5c0598
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e457a
push eax
push 0x5c057c
lea ecx, [esp + 0x40]
call fcn.004e8990
jmp 0x4e45ca
mov eax, dword [esp + 0x34]
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call fcn.004e1e90
add esp, 0x18
lea ecx, [esp + 0x38]
push eax
call fcn.004e8840
cmp dword [esp + 0x30], 8
jb 0x4e45c1
push dword [esp + 0x1c]
call fcn.00541faa
add esp, 4
push ebx
call fcn.00541faa
add esp, 4
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004e87d0
cmp dword [esp + 0x4c], 8
jb 0x4e45e9
push dword [esp + 0x38]
call fcn.00541faa
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x4e4610
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x568400
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x5d86f0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push 0x5c057c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.004e8990
lea eax, [esp + 0x28]
mov dword [esp + 0x70], 0
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x4e46b9
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e87d0
jmp 0x4e47d5
lea eax, [ebx + 1]
push eax
call fcn.0054170e
add esp, 4
mov edi, eax
push edi
push ebx
mov dword [edi], 0
push dword [esp + 0x30]
push dword [esp + 0x20]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4e46f2
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e87d0
jmp 0x4e47d5
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
push str.VarFileInfoTranslation
push edi
call ebx
test eax, eax
jne 0x4e4727
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e87d0
jmp 0x4e47d5
cmp dword [ebp + 0x14], 0
mov edx, 0x4e4
mov eax, dword [esp + 0x24]
jne 0x4e473a
movzx edx, word [eax + 2]
movzx ecx, word [eax]
push dword [esp + 0x18]
movzx eax, dx
shl ecx, 0x10
or ecx, eax
lea eax, [esp + 0x4c]
push ecx
push str.StringFileInfo_08lx_s
push eax
call fcn.004e1e90
add esp, 0x10
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push ecx
cmovae eax, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
mov dword [esp + 0x30], 0
call ebx
test eax, eax
je 0x4e4796
push dword [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.004e88d0
push edi
call fcn.00541faa
add esp, 4
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e87d0
cmp dword [esp + 0x5c], 8
jb 0x4e47be
push dword [esp + 0x48]
call fcn.00541faa
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
cmp dword [esp + 0x44], 8
jb 0x4e47e8
push dword [esp + 0x30]
call fcn.00541faa
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x4e5d60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5685eb
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x5d86f0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x14]
xor eax, eax
mov dword [esp + 0x10], 0
push eax
push 0x5c057c
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.004e8990
push 0
mov dword [esp + 0x274], 0
push 2
mov dword [esp + 0x34], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e5e58
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4e5e58
mov edi, dword [ebp + 0xc]
cmp dword [esp + 0x34], edi
je 0x4e5e20
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4e5e08
jmp 0x4e5e58
cmp word [esp + 0x50], 0
jne 0x4e5e2c
xor ecx, ecx
jmp 0x4e5e42
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5e33
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.004e8990
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004e87d0
cmp dword [esp + 0x28], 8
jb 0x4e5e77
push dword [esp + 0x14]
call fcn.00541faa
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x4e5ea0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, edx
test ebx, ebx
je 0x4e6040
test esi, esi
je 0x4e6040
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4e5fb7
cmp word [ebp - 0x4bc], 0
mov dword [ebp - 0x4c0], 0
je 0x4e5fb7
lea edi, [ebp - 0x4bc]
mov dword [ebp - 0x4c4], 0
lea esp, [esp]
push 0x5c08b0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e5f8e
push 0x5c08b8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e5f8e
movzx eax, word [edi]
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x4c4]
push 0x64
movzx eax, word [ebp + eax - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4e602d
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xd4]
push edi
push eax
push ebx
call fcn.0054761b
add esp, 0xc
test eax, eax
je 0x4e5ff5
mov eax, dword [ebp - 0x4c0]
lea edi, [ebp - 0x4bc]
add eax, 4
mov dword [ebp - 0x4c0], eax
add eax, eax
add edi, eax
mov dword [ebp - 0x4c4], eax
cmp word [edi], 0
jne 0x4e5f10
mov ecx, 0x104
sub ebx, esi
mov edi, edi
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x4e6021
movzx eax, word [ebx + esi]
test ax, ax
je 0x4e6021
mov word [esi], ax
add esi, 2
dec ecx
jne 0x4e5fc0
sub esi, 2
xor eax, eax
pop edi
mov word [esi], ax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.004e14e0
lea eax, [ebx + edi*2]
mov ecx, esi
push eax
call fcn.004e1530
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x4e6028
sub esi, 2
xor eax, eax
mov word [esi], ax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x4e6b80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x5c059c
mov dword [esp + 0x18], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x4e6be3
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push 0x5c057c
mov word [esi], ax
call fcn.004e8990
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
push edi
call fcn.0054247b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4e6c12
push 0x5c057c
mov ecx, esi
call fcn.004e8770
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push 0x5c059c
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e6bf2
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
push eax
push 0x5c0598
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4e6bf2
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call fcn.004e1e90
add esp, 0x18
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004e87d0
lea ecx, [esp + 0x1c]
call fcn.004e8880
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x4e71e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5687eb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x254], eax
push esi
push edi
mov eax, dword [0x5d86f0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
cmp dword [esi + 0x14], 8
jb 0x4e7235
mov eax, dword [esi]
jmp 0x4e7237
mov eax, esi
push eax
lea eax, [esp + 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.004e1e90
add esp, 0xc
mov dword [esp + 0x270], 0
xorps xmm0, xmm0
push 0x5c0dd8
push 0x5c059c
mov dword [esp + 0x38], 0
movdqu xmmword [esp + 0x3c], xmm0
movdqu xmmword [esp + 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e730e
lea ecx, [esp + 0x30]
push ecx
call eax
mov eax, dword [esp + 0x30]
cmp ax, 9
je 0x4e72a2
cmp ax, 6
jne 0x4e730e
cmp dword [esi + 0x14], 8
jb 0x4e72aa
mov esi, dword [esi]
push esi
lea eax, [esp + 0x34]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.004e1e90
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x14]
cmp eax, esi
je 0x4e72fb
cmp dword [esp + 0x28], 8
jb 0x4e72da
push dword [esp + 0x14]
call fcn.00541faa
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004ea8f0
cmp dword [esp + 0x44], 8
jb 0x4e730e
push dword [esp + 0x30]
call fcn.00541faa
add esp, 4
xor eax, eax
mov dword [esp + 0x10], 0
push 0x206
push eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push eax
call fcn.005443d0
add esp, 0xc
lea ecx, [esp + 0x10]
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push ecx
push 1
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e7398
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], 0x208
cmp dword [eax + 0x14], 8
jb 0x4e736b
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
test eax, eax
mov ecx, 1
cmove edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x28], 8
jb 0x4e73ab
push dword [esp + 0x14]
call fcn.00541faa
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret

Function at 0x4e73d0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
lea eax, [ebp - 8]
xor bl, bl
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, 1
movzx ecx, bl
cmp eax, edx
pop ebx
cmove ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x4ef4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x568e38
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x5d86f0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
xor eax, eax
push eax
movdqa xmmword [esp + 0x38], xmm0
movdqa xmmword [esp + 0x48], xmm0
push 0x5c057c
mov dword [esp + 0x38], 0
movq qword [esp + 0x5c], xmm0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.004e8990
mov dword [esp + 0x50], 0x208
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [edi + 4]
mov dword [esp + 0x80], 0
cmp dword [eax + 0x14], 8
jb 0x4ef56b
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push dword [edi + 0x1c]
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4ef613
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 8
jb 0x4ef594
mov edi, dword [edi]
lea eax, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004ef210
add esp, 4
push eax
lea eax, [esp + 0x74]
push eax
push 0
push edi
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4ef613
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.004ef2b0
mov edi, eax
cmp esi, edi
je 0x4ef5fe
cmp dword [esi + 0x14], 8
jb 0x4ef5e3
push dword [esi]
call fcn.00541faa
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004ea8f0
cmp dword [esp + 0x2c], 8
jb 0x4ef611
push dword [esp + 0x18]
call fcn.00541faa
add esp, 4
xor edi, edi
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4ef64b
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4ef64b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ef64b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esp + 0x4c], 8
jb 0x4ef65e
push dword [esp + 0x38]
call fcn.00541faa
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0054546b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f2300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56911f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d86f0]
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 - 0x10], 0
mov dword [edi], 0x5c11c4
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004e0e70
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.004e0e50
push eax
mov dword [ebp - 4], 2
call fcn.004ecec0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f23ca
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f23ca
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4f23ef
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004e0d80
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004eb920
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x5de070]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 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
Function at 0x4f24b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56916f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d86f0]
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 - 0x10], 0
mov dword [edi], 0x5c1674
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004e0e70
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 4]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.004e0e50
push eax
mov dword [ebp - 4], 2
call fcn.004ecec0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f256c
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f256c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4f2591
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004e0d80
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004eb920
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x5de070]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 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
Function at 0x51a2a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc], esp
push str.OnCheckUpdate
call fcn.004e7e60
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0051f5a0
mov ecx, dword [ebp - 4]
call fcn.0051cfc0
movzx eax, al
test eax, eax
je 0x51a313
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.first_install
call fcn.004e7e60
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
call fcn.0051f5a0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5766f8
call fcn.004e8770
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
call fcn.0051ed20
xor eax, eax
jmp 0x51a386
mov ecx, dword [ebp - 4]
call fcn.0051cee0
movzx ecx, al
test ecx, ecx
je 0x51a343
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.already_updated
call fcn.004e7e60
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
call fcn.0051f5a0
xor eax, eax
jmp 0x51a386
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.active
call fcn.004e8770
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
call fcn.0051ed20
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x524360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10