joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4993b7
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp dword [0x505cd8], ebx
je 0x4993de
mov ebx, dword [0x505cdc]
jmp 0x4994dd
call fcn.00487f68
cmp eax, 0xffffffff
jne 0x4993ef
push 0x73
jmp 0x4994dc
cmp dword [0x506590], ebx
je 0x4994da
call fcn.004749a1
test eax, eax
jne 0x4994da
mov eax, dword [ebp + 8]
cmp dword [eax + 0x64], 0x6c
jne 0x499418
push 0x6c
jmp 0x4994dc
push 0x505cb8
lea ecx, [ebp - 0x18]
call fcn.00404d20
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], ebx
jne 0x49943d
push 0x71
pop ebx
lea ecx, [esi - 0x10]
call fcn.00404d60
jmp 0x4994dd
push esi
call fcn.004922ba
pop ecx
test al, al
jne 0x49944c
push 0x6d
jmp 0x49942f
mov eax, dword [0x4d7844]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d7848]
mov dword [ebp - 8], eax
cmp dword [esi - 0xc], ebx
jge 0x49946b
push 0x80070057
call fcn.00404d40
mov ax, word [esi]
mov word [ebp - 0xc], ax
push dword [ebp - 0xc]
call fcn.00499338
pop ecx
cmp eax, 1
je 0x499484
push 0x70
jmp 0x49942f
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x499430
cmp dword [ebp - 0x10], ebx
ja 0x499430
jb 0x4994d3
cmp dword [ebp - 0x14], 0x11e1a300
ja 0x499430
push 0x6f
jmp 0x49942f
push 0x6b
pop ebx
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004a0e91
leave
ret
Function at 0x4994ed
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f94]
mov eax, 0x4014
call fcn.004a1b30
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x3f90], eax
mov eax, dword [ebp + 0x3f9c]
push ebx
mov ebx, dword [ebp + 0x3fa8]
push esi
mov esi, dword [ebp + 0x3fa0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x3fac]
push edi
mov edi, dword [ebp + 0x3fa4]
mov dword [ebp - 0x78], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4995b6
cmp eax, 0x3fff
ja 0x4995b6
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
push dword [ebp - 0x74]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4995b6
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x4e0c60
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4995b6
mov eax, dword [ebp - 0x74]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov cx, word [eax + 8]
mov word [edi], cx
mov cx, word [eax + 0xe]
mov word [ebx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp - 0x78]
mov word [ecx], ax
xor eax, eax
inc eax
jmp 0x4995b8
xor eax, eax
mov ecx, dword [ebp + 0x3f90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x3f94
leave
ret

Function at 0x4995d0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x1a0]
push edi
mov edi, dword [ebp + 0x19c]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.004a0bd0
add esp, 0xc
push 0
push 0x25
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x499634
push str.User32.dll
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x499669
push str.ShutdownBlockReasonCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x499660
push ebx
push edi
call eax
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x194
leave
ret
Function at 0x499683
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push esi
push edi
mov dword [ebp - 0x80], eax
xor eax, eax
push 0x206
mov word [ebp - 0x7c], ax
xor edi, edi
lea eax, [ebp - 0x7a]
push edi
push eax
call fcn.004a0bd0
add esp, 0xc
push edi
push 0x25
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x4996e4
push str.User32.dll
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x499712
push str.ShutdownBlockReasonDestroy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x49970b
push dword [ebp - 0x80]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x18c]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a0e91
add ebp, 0x190
leave
ret

Function at 0x49c0d4
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0
push 1
mov edi, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push edi
mov ebx, ecx
push 0
push ebx
mov byte [ebp - 1], 1
call esi
test eax, eax
jne 0x49c123
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x49c11b
push 8
push 1
push edi
push 0
push ebx
call esi
test eax, eax
jne 0x49c123
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49c123
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49ed18
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x507384], 0
push esi
jne 0x49ec8b
call fcn.0049ebb1
test eax, eax
je 0x49ecce
mov eax, dword [0x507384]
cmp eax, 1
jne 0x49ecac
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49ecce
pop esi
ret
push eax
call dword [0x50738c]
test eax, eax
jne 0x49ed16
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 0x49ecd2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x507384]
call dword [0x50738c]
mov edi, eax
test edi, edi
je 0x49ecf7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x49ed13
mov edi, esi
add esi, 0xff0
push edi
push dword [0x507384]
call dword [0x507388]
add edi, 0x10
cmp edi, esi
jb 0x49ecff
mov eax, edi
pop edi
pop esi
ret
jmp 0x49ec78

Function at 0x4a0e91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ffeb0]
jne 0x4a0e9b
repz ret
jmp fcn.004aca9a

Function at 0x4be9b0
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.004ab47e
and dword [ebp - 4], 0
cmp dword [0x5081dc], 0
mov ebx, eax
jne 0x4bea61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4beb12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4beb12
push eax
call fcn.004ab40c
mov dword [esp], 0x4dda04
push edi
mov dword [0x5081dc], eax
call esi
push eax
call fcn.004ab40c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5081e0], eax
call esi
push eax
call fcn.004ab40c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5081e4], eax
call esi
push eax
call fcn.004ab40c
pop ecx
mov dword [0x5081ec], eax
test eax, eax
je 0x4bea61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ab40c
pop ecx
mov dword [0x5081e8], eax
mov eax, dword [0x5081e8]
cmp eax, ebx
je 0x4beab9
cmp dword [0x5081ec], ebx
je 0x4beab9
push eax
call fcn.004ab487
push dword [0x5081ec]
mov esi, eax
call fcn.004ab487
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4beab9
test edi, edi
je 0x4beab9
call esi
test eax, eax
je 0x4beab0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4beab0
test byte [ebp - 0xc], 1
jne 0x4beab9
or dword [ebp + 0x10], 0x200000
jmp 0x4beaf2
mov eax, dword [0x5081e0]
cmp eax, ebx
je 0x4beaf2
push eax
call fcn.004ab487
pop ecx
test eax, eax
je 0x4beaf2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4beaf2
mov eax, dword [0x5081e4]
cmp eax, ebx
je 0x4beaf2
push eax
call fcn.004ab487
pop ecx
test eax, eax
je 0x4beaf2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5081dc]
call fcn.004ab487
pop ecx
test eax, eax
je 0x4beb12
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4beb14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c41a0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004a1b30
mov eax, dword [0x4ffeb0]
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 0x4c430b
cmp dword [esp + 0x2c20], edi
je 0x4c430b
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.0042a4f0
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 0x4c42e4
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.004a0bd0
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 0x4c42d7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004a0bd0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.004c58c0
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.0042a4c0
test eax, eax
jne 0x4c42d7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x4c42ee
inc ebx
cmp ebx, 0x10
jl 0x4c41f0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004a0e91
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004a0e91
add esp, 0x2c14
ret
Function at 0x4c45b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4c47b1
cmp dword [esp + 0x2f8], 0
je 0x4c47b1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x4dda94
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c4778
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 0x4c476b
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 0x4c4739
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 0x4c472e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004a0bd0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.004c44a0
add esp, 0x14
test eax, eax
je 0x4c472e
cmp byte [esp + 0x24], 0
je 0x4c46f2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x4c472e
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 0x4c4721
mov cl, byte [esi + eax]
test cl, cl
je 0x4c4721
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4c4706
jmp 0x4c4725
test edx, edx
jne 0x4c4726
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 0x4c4650
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 0x4c47b1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0042a4c0
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004a0e91
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004a0e91
add esp, 0x2ec
ret
Function at 0x4c4a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4c4b9d
cmp ebp, 0x20
jb 0x4c4b9d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4d6c18
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4c4b9d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4ab0
sub eax, edx
cmp eax, 0x40
jne 0x4c4b9d
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 0x4c4aee
mov cl, byte [esi + eax]
test cl, cl
je 0x4c4aee
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4c4ad6
jmp 0x4c4af2
test edx, edx
jne 0x4c4af3
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 0x4c4b2b
mov cl, byte [edx + eax]
test cl, cl
je 0x4c4b2b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4c4b10
jmp 0x4c4b2f
test esi, esi
jne 0x4c4b30
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004a0bd0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004c3c20
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 0x4c4b9d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0042a4c0
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004a0e91
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004a0e91
add esp, 0x50c
ret

Function at 0x4c4bc0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x4ffeb0]
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.004a0bd0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.004c3c20
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 0x4c4c2b
mov cl, byte [esi + eax]
test cl, cl
je 0x4c4c2b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4c4c10
jmp 0x4c4c2f
test edx, edx
jne 0x4c4c30
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.004c3b30
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4c56
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x4d6c18
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004a0e91
add esp, 0x188
ret
Function at 0x4c6c50
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4c81a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x4c6540
push 0x508ab0
call fcn.004c6770
mov eax, dword [0x508ab8]
add esp, 8
test eax, eax
je 0x4c6caa
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.004a0998
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.00440a40
int3

Function at 0x4c6ce0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4c81d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x508ab8]
test eax, eax
jne 0x4c6d12
xor esi, esi
jmp 0x4c6d1b
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 0x4c6d47
cmp dword [esi + 0x14], 0
jne 0x4c6d89
cmp dword [esi + 0x10], 0
jne 0x4c6d90
push 0
call fcn.004c6c50
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x4c6d75
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c6d75
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 0x4c6dd0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c6dbe
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 0x4c6d90
cmp dword [esi + 0x14], 0
je 0x4c6d37
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c6df5
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 0x4c6e26
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c6e26
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 0x4c6e26
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 0x4c6dda
jmp 0x4c6d31
Function at 0x4c6ec0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4c8228
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ffeb0]
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 0x4c6e40
push 0
push 0
call fcn.004a57c7
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4c6f2b
lea ecx, [esp + 0x10]
call fcn.004a0998
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.00440a40
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 0x4c6f51
cmp eax, 0xffffffff
je 0x4c6f51
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 0x1061a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1061a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1061a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1061a06a
add dl, dl
jne 0x1061a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1061a0dc
xor eax, eax
add dl, dl
jne 0x1061a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1061a17d
add dl, dl
jne 0x1061a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1061a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1061a075
mov eax, 1
add dl, dl
jne 0x1061a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1061a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1061a0e1
sub eax, ebx
mov ebx, 1
jne 0x1061a128
mov ecx, 1
add dl, dl
jne 0x1061a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1061a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1061a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1061a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1061a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1061a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1061a136
cmp eax, 0x7d00
jae 0x1061a16d
cmp eax, 0x500
jb 0x1061a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1061a075
cmp eax, 0x7f
ja 0x1061a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1061a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1061a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1061a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10