joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef500
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x4ef532
xor ecx, ecx
jmp 0x4ef53e
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x4ef5f1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x4ef564
mov dword [esp + 0x18], esi
jmp 0x4ef5c4
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x4ef5bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ef5b0
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x4ef5c4
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ef5c4
push 0x55a0f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4ef5c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x4ef5e7
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4ef556
mov eax, dword [esp + 0x18]
pop edi
pop ebp
test eax, eax
jne 0x4ef605
mov ecx, dword [ebx]
add ecx, 8
call fcn.004ef790
test eax, eax
je 0x4ef605
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4ef610
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x51d7ab
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.004f18b0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4ef6a8
push 0x5664ec
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004fc29c
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4f0016
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x590e20], 0
push esi
jne 0x4eff89
call fcn.004efeae
test eax, eax
je 0x4effcc
mov eax, dword [0x590e20]
cmp eax, 1
jne 0x4effaa
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4effcc
pop esi
ret
push eax
call dword [0x590e28]
test eax, eax
jne 0x4f0014
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4effd0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x590e20]
call dword [0x590e28]
mov edi, eax
test edi, edi
je 0x4efff5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4f0011
mov edi, esi
add esi, 0xff0
push edi
push dword [0x590e20]
call dword [0x590e24]
add edi, 0x10
cmp edi, esi
jb 0x4efffd
mov eax, edi
pop edi
pop esi
ret
jmp 0x4eff76

Function at 0x4f189b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x585698]
jne 0x4f18a5
repz ret
jmp fcn.004fea98

Function at 0x4fba9b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4fbacc
call fcn.004fcd71
mov dword [eax], esi
call fcn.004fcd5e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004f2970
add esp, 0x14
push 0x16
pop eax
jmp 0x4fbb21
test dword [ebp + 0xc], 0xfffffff9
jne 0x4fbaa8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4fbaf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004fcd84
pop ecx
call fcn.004fcd5e
mov eax, dword [eax]
jmp 0x4fbb21
test al, 0x10
jne 0x4fbb1f
test al, 1
je 0x4fbb1f
test byte [ebp + 0xc], 2
je 0x4fbb1f
call fcn.004fcd71
mov dword [eax], 5
call fcn.004fcd5e
mov dword [eax], 0xd
jmp 0x4fbaf0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x513c79
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004ff634
and dword [ebp - 4], 0
cmp dword [0x591ca4], 0
mov ebx, eax
jne 0x513d2a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x513ddb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x513ddb
push eax
call fcn.004ff5c2
mov dword [esp], 0x539c84
push edi
mov dword [0x591ca4], eax
call esi
push eax
call fcn.004ff5c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x591ca8], eax
call esi
push eax
call fcn.004ff5c2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x591cac], eax
call esi
push eax
call fcn.004ff5c2
pop ecx
mov dword [0x591cb4], eax
test eax, eax
je 0x513d2a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ff5c2
pop ecx
mov dword [0x591cb0], eax
mov eax, dword [0x591cb0]
cmp eax, ebx
je 0x513d82
cmp dword [0x591cb4], ebx
je 0x513d82
push eax
call fcn.004ff63d
push dword [0x591cb4]
mov esi, eax
call fcn.004ff63d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x513d82
test edi, edi
je 0x513d82
call esi
test eax, eax
je 0x513d79
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x513d79
test byte [ebp - 0xc], 1
jne 0x513d82
or dword [ebp + 0x10], 0x200000
jmp 0x513dbb
mov eax, dword [0x591ca8]
cmp eax, ebx
je 0x513dbb
push eax
call fcn.004ff63d
pop ecx
test eax, eax
je 0x513dbb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x513dbb
mov eax, dword [0x591cac]
cmp eax, ebx
je 0x513dbb
push eax
call fcn.004ff63d
pop ecx
test eax, eax
je 0x513dbb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x591ca4]
call fcn.004ff63d
pop ecx
test eax, eax
je 0x513ddb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x513ddd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5197c0
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x51d1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x519050
push 0x591ccc
call fcn.00519280
mov eax, dword [0x591cd4]
add esp, 8
test eax, eax
je 0x51981a
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.004f1b10
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.0042ee12
int3
Function at 0x519850
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x51d1f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x591cd4]
test eax, eax
jne 0x519882
xor esi, esi
jmp 0x51988b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x5198b7
cmp dword [esi + 0x14], 0
jne 0x5198f9
cmp dword [esi + 0x10], 0
jne 0x519900
push 0
call fcn.005197c0
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x5198e5
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5198e5
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x519940
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x51992e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x519900
cmp dword [esi + 0x14], 0
je 0x5198a7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x519965
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x519996
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x519996
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519996
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x51994a
jmp 0x5198a1
Function at 0x519a30
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x51d248
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x5199b0
push 0
push 0
call fcn.004f5629
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x519a9b
lea ecx, [esp + 0x10]
call fcn.004f1b10
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0042ee12
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x519ac1
cmp eax, 0xffffffff
je 0x519ac1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x51a800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x51a838
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004f189b
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004f18b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x51a903
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x51a870
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x51a903
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x51a892
mov eax, dword [0x5481d0]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51a8b0
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x51a8c4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004f189b
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f189b
add esp, 0x20c
ret
Function at 0x51af80
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0050ead0
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x51b0eb
cmp dword [esp + 0x2c20], edi
je 0x51b0eb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push pe_nt_image_headers32
push eax
call fcn.00428964
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x51b0c4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004f18b0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x51b0b7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004f18b0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0051c890
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0042893e
test eax, eax
jne 0x51b0b7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x51b0ce
inc ebx
cmp ebx, 0x10
jl 0x51afd0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004f189b
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004f189b
add esp, 0x2c14
ret
Function at 0x51b390
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x51b591
cmp dword [esp + 0x2f8], 0
je 0x51b591
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004f18b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x539f3c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51b558
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x51b54b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51b519
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51b50e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004f18b0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0051b280
add esp, 0x14
test eax, eax
je 0x51b50e
cmp byte [esp + 0x24], 0
je 0x51b4d2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x51b50e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x51b501
mov cl, byte [esi + eax]
test cl, cl
je 0x51b501
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51b4e6
jmp 0x51b505
test edx, edx
jne 0x51b506
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x51b430
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x51b591
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0042893e
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004f189b
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004f189b
add esp, 0x2ec
ret
Function at 0x51b930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x51baad
cmp ebp, 0x20
jb 0x51baad
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004f18b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x5490b0
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x51baad
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51b9c0
sub eax, edx
cmp eax, 0x40
jne 0x51baad
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x51b9fe
mov cl, byte [esi + eax]
test cl, cl
je 0x51b9fe
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51b9e6
jmp 0x51ba02
test edx, edx
jne 0x51ba03
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x51ba3b
mov cl, byte [edx + eax]
test cl, cl
je 0x51ba3b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x51ba20
jmp 0x51ba3f
test esi, esi
jne 0x51ba40
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004f18b0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0051aa00
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x51baad
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0042893e
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004f189b
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004f189b
add esp, 0x50c
ret
Function at 0x51bad0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004f18b0
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.0051aa00
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x51bb3b
mov cl, byte [edx + eax]
test cl, cl
je 0x51bb3b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x51bb20
jmp 0x51bb3f
test esi, esi
jne 0x51bb40
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.0051a970
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.004f18b0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x5490b0
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x51bc1b
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x51bbe3
test dl, dl
je 0x51bbdf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x51bbe3
add eax, 2
add ecx, 2
test dl, dl
jne 0x51bbc3
xor eax, eax
jmp 0x51bbe8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x51bc1b
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51bbf6
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51bc25
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x5490b0
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.004f189b
add esp, 0x290
ret
Function at 0x401018
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.00453380
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0044ded0
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x475e78]
add esp, 0xc
mov dword [ebp - 0x58], 0x44
test byte [eax + 0x9066], 1
mov edi, 0x206
je 0x4010d9
push 1
push eax
lea esi, [ebp - 0x1678]
call fcn.004074f1
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.0044ded0
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
inc eax
inc eax
cmp cx, bx
jne 0x401088
push 0x45ca20
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [0x475e78]
test byte [eax + 0x9066], 2
je 0x401158
push 2
push eax
lea esi, [ebp - 0x1678]
call fcn.004074f1
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.0044ded0
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
inc eax
inc eax
cmp cx, bx
jne 0x40110c
push 0x45ca40
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4015b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
call fcn.00403f9a
test eax, eax
jne 0x4015dc
push 0x30
push str.Cannot_start_install
push str.There_is_a_problem_with_the_install_program.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40160b
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00401ea2
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov eax, dword [0x475e78]
add eax, 0xb7c4
push eax
call fcn.0041553e
xor eax, eax
pop ecx
inc eax
mov esp, ebp
pop ebp
ret