joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2eb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x5924cb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x65f5f4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.004f6c2e
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x4f309d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4f2f4e
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.004fe380
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.004f2ba0
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x4f2fb5
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x600250
push eax
call fcn.004f87c7
add esp, 0xc
cmp eax, 1
jne 0x4f2fb5
mov eax, dword [ebp - 0x14]
mov dword [0x65f5f4], eax
jmp 0x4f3085
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4f2fcf
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4f2fe3
push ebx
push esi
call fcn.004f3300
jmp 0x4f2fe5
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x65f5f4], eax
test eax, eax
jne 0x4f3007
push 0x607d58
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.004fe8eb
push eax
lea edx, [ebp + 0x84]
push 0x600250
push edx
mov edi, 1
call fcn.004f674e
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.004f2ce0
test eax, eax
jne 0x4f307e
push 0x607d58
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.004fe8eb
call fcn.004f2d80
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x65f5f4]
test esi, esi
je 0x4f306f
call fcn.004f33e0
mov dword [0x65f5f4], 0
jmp 0x4f3076
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4f307c
ret
mov eax, dword [0x65f5f4]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x4f309d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x65f5f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.004f673f
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x4f30d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592180
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x65f5f4]
xor edi, edi
cmp ecx, edi
jne 0x4f311b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4f3128
mov dword [ebp - 0x14], edi
jmp 0x4f3140
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4f31d6
mov ecx, dword [0x65f5f4]
mov eax, dword [ecx]
cmp eax, edi
je 0x4f3107
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4f3107
mov ebx, 0x65f5f4
mov dword [ebp - 4], edi
call fcn.004f31f0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x4f317e
push 0x607d58
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.004fe8eb
mov ecx, dword [0x65f5f4]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4f3198
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x4f31c2
push 0x607d58
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.004fe8eb
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4f31b9
call fcn.004f3500
mov eax, 0x4f31bf
ret
mov eax, dword [0x65f5f4]
mov eax, dword [eax]
test eax, eax
je 0x4f31d4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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
Function at 0x4f31f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x4f321d
xor ecx, ecx
jmp 0x4f3229
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x4f32dd
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 0x4f3250
mov dword [esp + 0xc], esi
jmp 0x4f32b0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x4f32a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4f329c
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 0x4f32b0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f32b0
push 0x600258
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4f32b0
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 0x4f32d3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4f3242
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x4f32f1
mov ecx, dword [ebx]
add ecx, 8
call fcn.004f3430
test eax, eax
je 0x4f32f1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x4f3300
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x59249b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x61e69c]
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.004fe380
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 0x4f3398
push 0x607d58
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004fe8eb
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
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 0x4f4459
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x628520], 0
push esi
jne 0x4f43cc
call fcn.004f42f2
test eax, eax
je 0x4f440f
mov eax, dword [0x628520]
cmp eax, 1
jne 0x4f43ed
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4f440f
pop esi
ret
push eax
call dword [0x628528]
test eax, eax
jne 0x4f4457
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 0x4f4413
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x628520]
call dword [0x628528]
mov edi, eax
test edi, edi
je 0x4f4438
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4f4454
mov edi, esi
add esi, 0xff0
push edi
push dword [0x628520]
call dword [0x628524]
add edi, 0x10
cmp edi, esi
jb 0x4f4440
mov eax, edi
pop edi
pop esi
ret
jmp 0x4f43b9

Function at 0x4f673f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61e69c]
jne 0x4f6749
repz ret
jmp fcn.00503a2c

Function at 0x515635
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.00504f83
and dword [ebp - 4], 0
cmp dword [0x62949c], 0
mov ebx, eax
jne 0x5156e6
push 0x5a9cc8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x515797
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a9cbc
push edi
call esi
test eax, eax
je 0x515797
push eax
call fcn.00504f11
mov dword [esp], 0x5a9458
push edi
mov dword [0x62949c], eax
call esi
push eax
call fcn.00504f11
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6294a0], eax
call esi
push eax
call fcn.00504f11
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6294a4], eax
call esi
push eax
call fcn.00504f11
pop ecx
mov dword [0x6294ac], eax
test eax, eax
je 0x5156e6
push 0x5a942c
push edi
call esi
push eax
call fcn.00504f11
pop ecx
mov dword [0x6294a8], eax
mov eax, dword [0x6294a8]
cmp eax, ebx
je 0x51573e
cmp dword [0x6294ac], ebx
je 0x51573e
push eax
call fcn.00504f8c
push dword [0x6294ac]
mov esi, eax
call fcn.00504f8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51573e
test edi, edi
je 0x51573e
call esi
test eax, eax
je 0x515735
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x515735
test byte [ebp - 0xc], 1
jne 0x51573e
or dword [ebp + 0x10], 0x200000
jmp 0x515777
mov eax, dword [0x6294a0]
cmp eax, ebx
je 0x515777
push eax
call fcn.00504f8c
pop ecx
test eax, eax
je 0x515777
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x515777
mov eax, dword [0x6294a4]
cmp eax, ebx
je 0x515777
push eax
call fcn.00504f8c
pop ecx
test eax, eax
je 0x515777
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x62949c]
call fcn.00504f8c
pop ecx
test eax, eax
je 0x515797
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x515799
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51a830
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00515150
mov eax, dword [0x61e69c]
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 0x51a99b
cmp dword [esp + 0x2c20], edi
je 0x51a99b
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 0x100
push eax
call fcn.00442460
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 0x51a974
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.004fe380
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 0x51a967
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004fe380
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0051bf50
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.004a8384
test eax, eax
jne 0x51a967
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x51a97e
inc ebx
cmp ebx, 0x10
jl 0x51a880
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004f673f
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004f673f
add esp, 0x2c14
ret
Function at 0x51ac40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x51ae41
cmp dword [esp + 0x2f8], 0
je 0x51ae41
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004fe380
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x5aa444
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51ae08
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 0x51adfb
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 0x51adc9
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 0x51adbe
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004fe380
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0051ab30
add esp, 0x14
test eax, eax
je 0x51adbe
cmp byte [esp + 0x24], 0
je 0x51ad82
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x51adbe
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 0x51adb1
mov cl, byte [esi + eax]
test cl, cl
je 0x51adb1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51ad96
jmp 0x51adb5
test edx, edx
jne 0x51adb6
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 0x51ace0
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 0x51ae41
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.004a8384
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004f673f
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004f673f
add esp, 0x2ec
ret
Function at 0x51b0b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x51b22d
cmp ebp, 0x20
jb 0x51b22d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004fe380
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x5aa4b4
push str.Software360SafeLiveup
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x51b22d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51b140
sub eax, edx
cmp eax, 0x40
jne 0x51b22d
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 0x51b17e
mov cl, byte [esi + eax]
test cl, cl
je 0x51b17e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51b166
jmp 0x51b182
test edx, edx
jne 0x51b183
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 0x51b1bb
mov cl, byte [edx + eax]
test cl, cl
je 0x51b1bb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x51b1a0
jmp 0x51b1bf
test esi, esi
jne 0x51b1c0
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004fe380
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0051a2b0
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 0x51b22d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.004a8384
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004f673f
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004f673f
add esp, 0x50c
ret

Function at 0x51b250
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.004fe380
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.0051a2b0
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x51b2bb
mov cl, byte [esi + eax]
test cl, cl
je 0x51b2bb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51b2a0
jmp 0x51b2bf
test edx, edx
jne 0x51b2c0
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.0051a220
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51b2e6
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x5aa4b4
push str.Software360SafeLiveup
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004f673f
add esp, 0x188
ret
Function at 0x51ffd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5912da
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esp + 0xb]
push eax
lea edx, [esp + 0xf]
lea ecx, [esi + 8]
push edx
mov dword [esi], vtable.CZipArchive.0
call fcn.0051cea0
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0
call fcn.00524f70
lea ecx, [esi + 0xc0]
mov byte [esp + 0x18], 1
call fcn.00522160
xor eax, eax
mov dword [esi + 0x10c], 7
mov dword [esi + 0x108], 0
mov word [esi + 0xf8], ax
xor ecx, ecx
mov dword [esi + 0x128], 7
mov dword [esi + 0x124], eax
mov word [esi + 0x114], cx
lea ecx, [esi + 0x130]
mov byte [esp + 0x18], 4
call fcn.00521ce0
lea ecx, [esi + 0x14c]
mov byte [esp + 0x18], 5
call fcn.00521ce0
lea edx, [esp + 0xb]
push edx
lea eax, [esp + 0xf]
lea ecx, [esi + 0x15c]
push eax
mov byte [esp + 0x20], 6
call fcn.0051cea0
mov ecx, esi
mov byte [esp + 0x18], 7
call fcn.0051c230
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x520150
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, ecx
cmp dword [esp + 0x10], edi
jbe 0x520191
push ebx
mov ebx, dword [esp + 0x10]
push esi
movzx eax, byte [edi + ebx]
mov esi, dword [ebp + 0xc]
and esi, 0xfffd
push eax
mov ecx, ebp
or esi, 2
call fcn.00529280
mov ecx, esi
xor ecx, 1
imul ecx, esi
sar ecx, 8
xor byte [edi + ebx], cl
inc edi
cmp edi, dword [esp + 0x18]
jb 0x520162
pop esi
pop ebx
pop edi
pop ebp
ret 8

Function at 0x5201d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
mov ebx, ecx
test ebp, ebp
jbe 0x52020f
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor byte [esi + edi], cl
movzx eax, byte [esi + edi]
push eax
mov ecx, ebx
call fcn.00529280
inc esi
cmp esi, ebp
jb 0x5201e4
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x521430
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x5913f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x44]
mov ecx, ebx
call fcn.00529770
cmp dword [esi + 0x74], 0
movzx eax, word [esi + 0xa]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x70]
je 0x52147a
cmp dword [eax + 8], 0
ja 0x521482
push eax
mov ecx, esi
call fcn.00520c40
cmp dword [esi + 0x84], 0
lea eax, [esi + 0x80]
je 0x521497
cmp dword [eax + 8], 0
ja 0x52149f
push eax
mov ecx, esi
call fcn.00520710
mov eax, dword [esi + 0x88]
cmp eax, 0xffff
jg 0x5214c8
cmp dword [esi + 0x78], 0xffff
jg 0x5214c8
mov ecx, ebx
call fcn.00529720
cmp eax, 0xffff
setle al
test al, al
jne 0x5214d4
push 0
push 0xd3
call fcn.0051e510
mov edi, dword [esi + 0x78]
mov ebp, dword [esi + 0x88]
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
call fcn.00529720
movzx ebx, ax
movzx ecx, bp
movzx eax, bx
movzx ebp, di
mov dword [esp + 0x20], ecx
add ecx, ebp
mov dword [esp + 0x24], eax
lea eax, [ecx + eax + 0x2e]
push 0
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], eax
call fcn.00521dc0
mov edx, dword [0x61f748]
mov edi, dword [esp + 0x30]
mov dword [edi], edx
movsx ax, byte [esi + 0x90]
movzx cx, byte [esi + 4]
mov dx, word [esp + 0x18]
shl ax, 8
or ax, cx
movzx eax, ax
mov word [edi + 4], ax
movzx eax, word [esi + 6]
mov word [edi + 6], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
mov word [edi + 0xa], dx
movzx eax, word [esi + 0xc]
mov word [edi + 0xc], ax
movzx eax, word [esi + 0xe]
mov word [edi + 0xe], ax
cmp byte [esi + 0x63], 0
mov dword [esp + 0x40], 0
je 0x521578
xor eax, eax
jmp 0x52157b
mov eax, dword [esi + 0x10]
mov cx, word [esp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov ax, word [esp + 0x1c]
mov word [edi + 0x1c], ax
mov word [edi + 0x1e], bx
mov word [edi + 0x20], cx
movzx eax, word [esi + 0x1c]
mov word [edi + 0x22], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x24], ax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x26], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x2a], eax
mov eax, dword [esi + 0x74]
push ebp
push eax
lea edx, [edi + 0x2e]
push edx
call fcn.00500790
add esp, 0xc
test bx, bx
je 0x5215df
lea eax, [edi + ebp + 0x2e]
push eax
lea ecx, [esi + 0x44]
call fcn.005296d0
cmp word [esp + 0x14], 0
je 0x521606
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x84]
mov edx, dword [esp + 0x24]
push ecx
push eax
add ebp, edx
lea eax, [edi + ebp + 0x2e]
push eax
call fcn.00500790
add esp, 0xc
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
push 1
push ebx
push edi
call fcn.00526c60
lea ecx, [esi + 0x44]
call fcn.00529770
mov ecx, esi
call fcn.00520900
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xffffffff
call fcn.00521df0
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4