joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47db51
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x47db76
push 0
push 0
push esi
push 0x47db20
push 0
push 0
call fcn.0048d004
add esp, 0x18
mov dword [esi + 4], eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push 0x4ba670
push eax
call fcn.00468430
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47dba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ecx
ret

Function at 0x47df70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [0x4ce63c]
push edi
push 0x4b43f8
push 0x9e2b
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x47dfe8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x47dfe8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp esi, ebx
je 0x47dfbf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x47dfc1
xor edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, ebx
jne 0x47dff2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push edi
push ebp
push eax
call fcn.0048e5f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x47e03f
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x47e02a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdiplusStartup
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047e0a0
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x47e086
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x47e180
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
mov dword [esi], vtable.CStatisticsMgr.0
test eax, eax
je 0x47e197
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47e1be
push edi
mov edi, dword [esi + 0x14]
call fcn.004602b0
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0048b128
add esp, 4
pop edi
mov edx, dword [esi + 4]
push edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.0048b128
add esp, 4
pop esi
ret

Function at 0x47e430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push 0x64
lea ebp, [edi + 0x3c]
push 0
push ebp
call fcn.0048dc10
add esp, 0xc
push 0x64
lea ebx, [edi + 0x104]
push 0
push ebx
call fcn.0048dc10
add esp, 0xc
push 0x64
lea eax, [edi + 0xa0]
push 0
push eax
call fcn.0048dc10
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x14]
push ecx
push str.PartnerName
push str.SOFTWARE360SafeCoop
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 0x64
call esi
mov eax, 4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.userid
push str.Software360Safe
push SysReAllocString
mov dword [esp + 0x28], 0
call esi
cmp word [ebp], 0
jne 0x47e501
push str.h_home
mov eax, SysReAllocString
mov ecx, 0x32
mov edx, ebp
call fcn.0046a070
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x47e512
mov eax, 1
mov dword [esp + 0x10], eax
push eax
push 0x4b40cc
mov eax, 0x64
call fcn.00468de0
add esp, 8
mov ebx, edi
call fcn.0047e310
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.0048dc10
mov ecx, dword [0x4d08dc]
add esp, 0xc
push str.360leakfixer.exe
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ebx, [edi + 0x2f8]
mov ecx, ebx
lea esi, [esp + 0x18]
call fcn.00456c00
push str...leakrepair.dll
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [edi + 0x3c0]
call fcn.00456c00
mov eax, dword [0x4d01ec]
cmp eax, 1
jne 0x47e598
mov eax, 0x4ba788
jmp 0x47e5a7
cmp eax, 2
mov eax, 0x4ba790
je 0x47e5a7
mov eax, 0x4ba798
push eax
lea eax, [edi + 0xa0]
push eax
push ebp
lea eax, [edi + 0x104]
push eax
lea eax, [edi + 0x3c0]
push eax
push ebx
push str.appver_sdllver_suid_spid_smid_slang_s
lea ebx, [edi + 0x168]
mov eax, 0x190
call fcn.00468de0
mov ecx, dword [esp + 0x240]
add esp, 0x1c
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048b133
add esp, 0x220
ret
Function at 0x47e850
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4a8e50
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x4cd9d0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x4cd9cc]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47e95d
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
push 0x9c61
mov dword [esp + 0x1c], 0
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x47e8e2
lea edx, [esp + 8]
push edx
mov eax, 0x9c61
call fcn.0046c580
mov esi, dword [esp + 8]
push str.CStatisticsMgr::WaitQuit
lea eax, [esp + 0x10]
push esi
push eax
mov dword [esp + 0x24], 1
call fcn.00468430
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e91d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4cd9cc]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [0x4cd9cc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x47e9a0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push edi
mov edi, eax
cmp dword [edi + 0x34], 0
jne 0x47e9d3
call fcn.0047e430
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x47e980
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x34], eax
pop edi
add esp, 8
ret
Function at 0x47e9e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a7f20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp eax, dword [0x4d0d54]
jbe 0x47ea2d
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor esi, esi
cmp dword [ebp + 0x34], esi
jne 0x47ea56
mov edi, ebp
call fcn.0047e430
lea ecx, [esp + 0x34]
push ecx
push esi
push ebp
push 0x47e980
push esi
push esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x34], eax
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x3c]
push ecx
lea edi, [esp + 0x38]
call fcn.0046af50
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [ebp + 0x168]
push edx
push eax
push str._s_s_s
lea edi, [esp + 0x24]
call fcn.0046afd0
mov esi, dword [esp + 0x24]
add esp, 0x10
lea edi, [esp + 0x18]
call fcn.0047efb0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eaee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edi, [esi - 0x10]
mov eax, edi
mov dword [esp + 0x20], esp
mov ebx, esp
call fcn.0046b5f0
add eax, 0x10
mov esi, ebp
mov dword [ebx], eax
call fcn.0047e1f0
mov esi, eax
mov byte [esp + 0x28], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eb2b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eb53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x47eda0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a7f20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp eax, dword [0x4d0d54]
jbe 0x47eded
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor esi, esi
cmp dword [ebp + 0x34], esi
jne 0x47ee16
mov edi, ebp
call fcn.0047e430
lea ecx, [esp + 0x34]
push ecx
push esi
push ebp
push 0x47e980
push esi
push esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x34], eax
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x3c]
push ecx
lea edi, [esp + 0x38]
call fcn.0046af50
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x38]
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x34]
push ecx
push edx
push 0x4ba8f4
lea edi, [esp + 0x20]
call fcn.0046afd0
mov esi, dword [esp + 0x20]
add esp, 0xc
lea edi, [esp + 0x18]
call fcn.0047efb0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eea7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edi, [esi - 0x10]
mov eax, edi
mov dword [esp + 0x20], esp
mov ebx, esp
call fcn.0046b5f0
add eax, 0x10
mov esi, ebp
mov dword [ebx], eax
call fcn.0047e1f0
mov esi, eax
mov byte [esp + 0x28], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47eee4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ef0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x47f6b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push ebp
xor ebp, ebp
push esi
mov esi, eax
cmp dword [0x4d0230], ebp
jne 0x47f6cb
mov eax, dword [sym.imp.USER32.dll_EnableScrollBar]
mov dword [0x4d0230], eax
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push str.CoolSBSubclassPtr
push esi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x47f6ef
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
push ebx
push edi
push 0x6c0
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [sym.imp.USER32.dll_GetScrollInfo]
mov edi, eax
lea eax, [edi + 0x10]
push eax
push ebp
push esi
mov dword [eax], 0x1c
mov dword [eax + 4], 0x17
call ebx
lea eax, [edi + 0x35c]
push eax
push 1
push esi
mov dword [eax], 0x1c
mov dword [eax + 4], 0x17
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push esi
call ebx
shr eax, 0xe
push 0xfffffffffffffff0
and eax, 1
push esi
mov dword [edi + 0x6a4], eax
call ebx
push edi
push str.CoolSBSubclassPtr
push esi
call dword [sym.imp.USER32.dll_SetPropW]
push 0x4844f0
or eax, 0xffffffff
push 0xfffffffffffffffc
push esi
mov dword [edi + 0x348], ebp
mov dword [edi + 0x694], 1
mov dword [edi + 0x34c], ebp
mov dword [edi + 0x698], ebp
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x378], eax
mov dword [edi + 0x37c], eax
mov dword [edi + 0x6bc], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x47f7c5
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
jmp 0x47f7ca
mov eax, 8
call fcn.0047fea0
push 0x37
push ebp
push ebp
push ebp
push ebp
push ebp
push esi
mov dword [edi + 0x6a8], ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x10
ret

Function at 0x47fea0
Capabilities:
Check os version

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetPropW]
push str.CoolSBSubclassPtr
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x47feb9
pop edi
pop ebx
ret
cmp ebx, 0xffffffff
jne 0x47fede
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x47fed7
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
jmp 0x47fedc
mov eax, 8
mov ebx, eax
push str.CoolSBSubclassPtr
push esi
call edi
test eax, eax
je 0x47fef5
add eax, 8
je 0x47fef5
mov dword [eax + 0x348], ebx
push str.CoolSBSubclassPtr
push esi
call edi
test eax, eax
je 0x47ff0e
add eax, 0x354
je 0x47ff0e
mov dword [eax + 0x348], ebx
pop edi
mov eax, 1
pop ebx
ret
Function at 0x484a6c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ce600], 0
push esi
jne 0x4849df
call fcn.00484905
test eax, eax
je 0x484a22
mov eax, dword [0x4ce600]
cmp eax, 1
jne 0x484a00
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x484a22
pop esi
ret
push eax
call dword [0x4ce608]
test eax, eax
jne 0x484a6a
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 0x484a26
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ce600]
call dword [0x4ce608]
mov edi, eax
test edi, edi
je 0x484a4b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x484a67
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4ce600]
call dword [0x4ce604]
add edi, 0x10
cmp edi, esi
jb 0x484a53
mov eax, edi
pop edi
pop esi
ret
jmp 0x4849cc

Function at 0x485ad0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x485b02
xor ecx, ecx
jmp 0x485b0e
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x485bc1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi]
cmp dword [esp + 0x14], eax
jne 0x485b34
mov dword [esp + 0x10], esi
jmp 0x485b94
push eax
push 1
push 0x40
call ebx
test eax, eax
jne 0x485b8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x485b80
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 0x485b94
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x485b94
push 0x4acce0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x485b94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x485bb7
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x485b26
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
test eax, eax
jne 0x485bd5
mov ecx, dword [edi]
add ecx, 8
call fcn.00485950
test eax, eax
je 0x485bd5
mov edx, dword [esp + 0xc]
mov dword [eax], edx
pop edi
pop esi
add esp, 8
ret
Function at 0x485bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3700
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x485c3c
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 [eax + 4]
cmp eax, 0xffffffff
jne 0x485c49
mov dword [ebp - 0x14], ebx
jmp 0x485c5b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x485cf5
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x485c28
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x485c28
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00485ad0
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x485c98
push 0x4bdc98
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.0048d76b
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x485cae
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x485ce4
push 0x4bdc98
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 4
call fcn.0048d76b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x485cd8
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
push eax
add ecx, 8
call fcn.00485a30
mov eax, 0x485cde
ret
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x485cf3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x485d10
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4a372b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
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.0048dc10
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x18], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x485dab
push 0x4bdc98
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0048d76b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x485e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x4ce6cc
jmp fcn.00485bf0
Function at 0x487270
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4872a4
push str.SetFilePointerEx__
push eax
push 0xed
push str..QHImageHlp.c
call fcn.00485730
add esp, 0x10
xor eax, eax
ret
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4872d7
push str.ReadFile__
push eax
push 0xf0
push str..QHImageHlp.c
call fcn.00485730
add esp, 0x10
xor eax, eax
ret
cmp edi, dword [esp + 4]
je 0x4872f9
push 0x4ad240
push 1
push 0xf2
push str..QHImageHlp.c
call fcn.00485760
add esp, 0x10
xor eax, eax
ret
mov eax, 1
ret
Function at 0x488830
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x489a10
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x489a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x489a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x48ac80
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x808], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0048dc10
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x48ad00
mov eax, 1
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0048b133
add esp, 0x80c
ret
push str.360ver.dll
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ace6
lea edx, [esp + 8]
push edx
call fcn.0048abb0
add esp, 4
test eax, eax
je 0x48ace6
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x48ad5e
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0048b133
add esp, 0x80c
ret
push edi
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x810]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0048b133
add esp, 0x80c
ret