joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409de0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4bcb1b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e97d0]
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.00484550
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 0x409e78
push 0x4df5ec
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.00484656
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 0x40a900
Capabilities:
Check http status code

Disassembly:
sub esp, 0x14
push edi
xor edi, edi
mov dword [esp + 0xc], 3
mov dword [esp + 8], edi
mov dword [esp + 0x10], 4
cmp esi, edi
je 0x40a9f9
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpSendRequestW]
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, dword [esp + 0x14]
mov ecx, eax
dec eax
mov dword [esp + 0x14], eax
test ecx, ecx
jle 0x40a9f7
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x40a9b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
je 0x40a968
cmp eax, 0x2f19
jne 0x40a9a4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
push 0x1f
push esi
mov dword [esp + 0x2c], 4
call ebp
or dword [esp + 0xc], 0x3180
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x40a930
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a930
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x20000013
push esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
test edi, edi
je 0x40a9a8
cmp dword [esp + 0x10], 0xc8
je 0x40a9f7
xor edi, edi
jmp 0x40a930
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x14
ret
Function at 0x40aeb0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4bcffb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e97d0]
xor eax, esp
push eax
lea eax, [esp + 0x2dc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2ec]
lea ecx, [esp + 0x3c]
push ecx
push 0x202
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [esp + 0x3c]
cmp al, 2
jne 0x40b014
shr eax, 8
cmp al, 2
jne 0x40b014
push str.dl.360safe.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x40af42
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.pHost__NULL__n
jmp 0x40b019
mov esi, dword [eax + 0xc]
xor ebp, ebp
cmp dword [esi], ebx
je 0x40b00c
xor edi, edi
push 0x103
lea edx, [esp + 0x1d1]
push ebx
push edx
mov byte [esp + 0x1d8], bl
call fcn.00484550
mov eax, dword [esi + edi]
mov ecx, dword [eax]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x1cc]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x40af81
lea eax, [esp + 0x1cc]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40afa5
sub eax, edx
push eax
lea edx, [esp + 0x1d0]
push edx
lea ecx, [esp + 0x28]
call fcn.0040bfa0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2e8], ebx
call fcn.0040b950
mov dword [esp + 0x2e4], 0xffffffff
cmp dword [esp + 0x38], 0x10
jb 0x40aff4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0048453e
add esp, 4
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0xc]
inc ebp
cmp dword [esi + ebp*4], ebx
lea edi, [ebp*4]
jne 0x40af51
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x40b021
push str.init_socket_failed
call fcn.00487ed5
add esp, 4
mov ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.00484647
add esp, 0x2d4
ret
Function at 0x40b490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd364
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x4e97d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, 1
or edi, 0xffffffff
test byte [0x4ee78c], bl
jne 0x40b51e
or dword [0x4ee78c], ebx
xor eax, eax
mov dword [esp + 0x20], 0
mov ecx, 0x4ee774
mov dword [0x4ee774], eax
mov dword [0x4ee778], eax
mov dword [0x4ee77c], eax
mov dword [0x4ee780], eax
mov dword [0x4ee784], eax
mov dword [0x4ee788], eax
call fcn.0040df20
test eax, eax
jge 0x40b50d
push eax
call fcn.0040dfb0
push 0x4bd740
call fcn.00484f89
add esp, 4
mov dword [esp + 0x20], edi
test byte [0x4ee78c], 2
jne 0x40b54d
or dword [0x4ee78c], 2
mov dword [esp + 0x20], ebx
push 0x4bd720
mov dword [0x4ee76c], 0
call fcn.00484f89
add esp, 4
mov dword [esp + 0x20], edi
push 0x4ee774
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4ee770], 0
jne 0x40b5ba
cmp dword [0x4ee76c], 0
jne 0x40b5ba
push str.A2CE3D3C_15E7_4985_B2C5_58F681DD07A5
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x4ee76c], eax
test eax, eax
jne 0x40b5ba
push str.A2CE3D3C_15E7_4985_B2C5_58F681DD07A5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4ee76c], eax
test eax, eax
jne 0x40b5ba
push 0x4ee774
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4ee774
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4ee76c]
push edi
push eax
mov dword [esp + 0x14], 0x4ee76c
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x10], bl
mov dword [esp + 0x20], 2
cmp dword [0x4ee770], 0
jne 0x40b622
call fcn.0040b050
mov dword [0x4ee770], eax
test eax, eax
jne 0x40b622
mov dword [esp + 0x20], edi
mov ecx, dword [0x4ee76c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x20], edi
mov edx, dword [0x4ee76c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
mov ecx, dword [0x4ee770]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dc40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40dc59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40dc94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40dc90
lea ebx, [ebx]
cmp esi, eax
jae 0x40dc94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40dc80
cmp esi, eax
jb 0x40dc9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40e100
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e153
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00484647
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x114]
push ecx
push esi
call edi
test eax, eax
je 0x40e1db
cmp dword [esp + 0xc], 0x40
jne 0x40e1db
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x40e1db
mov eax, dword [esp + 0x144]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x144]
jne 0x40e1db
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x40e1db
cmp dword [esp + 0xc], 0xf8
jne 0x40e1db
cmp dword [esp + 0x10], 0x4550
jne 0x40e1db
cmp word [esp + 0x16], bx
je 0x40e1db
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00484647
mov esp, ebp
pop ebp
ret
Function at 0x40e8d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x81c
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x814], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00484550
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40e954
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00484647
add esp, 0x81c
ret
push str.360ver.dll
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e938
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x14], 0
call fcn.0040e300
add esp, 0xc
cmp dword [esp + 8], 0
je 0x40e938
lea edx, [esp + 0x18]
push edx
call fcn.0040e7d0
mov esi, eax
test esi, esi
je 0x40e938
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 + 0x81c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00484647
add esp, 0x81c
ret
Function at 0x40e9e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1008
call fcn.00484d50
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x1004], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00484550
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push 0x4cdcc0
push ecx
call fcn.00487411
add esp, 0xc
push 0x800
lea edx, [esp + 0xc]
push esi
push edx
call fcn.004873d1
add esp, 0xc
push 0x800
lea eax, [esp + 0xc]
push 0x4cdcc8
push eax
call fcn.004873d1
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004873d1
add esp, 0xc
push 0x800
lea edx, [esp + 0xc]
push 0x4cdcf4
push edx
call fcn.004873d1
add esp, 0xc
push 0x800
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004873d1
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push 0x4cdd18
push ecx
call fcn.004873d1
add esp, 0xc
push 0x14
push esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x40eb14
push 0xc8
push 0x4cdbc8
push str.http:__down.360safe.com_setup.exe
call fcn.00489e6c
add esp, 0xc
test eax, eax
jne 0x40eafc
call fcn.0040e8d0
test eax, eax
je 0x40eafc
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x40eb07
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x40eb21
push 0
call fcn.00487339
mov ecx, dword [esp + 0x100c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00484647
mov esp, ebp
pop ebp
ret
Function at 0x40f5f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x56c
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x568], eax
mov eax, dword [esp + 0x570]
push ebp
push esi
push edi
push 0x11c
lea ecx, [esp + 0x4c]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00484550
push 0x11c
push 0
push ebx
mov dword [esp + 0x60], 0x11c
call fcn.00484550
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x40f694
push str.IsWow64Process
push str.kernel32
call ebp
push eax
call edi
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x40f694
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40f694
cmp dword [esp + 0x10], 0
jne 0x40f75b
push str.RtlGetVersion
push str.ntdll
call ebp
push eax
call edi
test eax, eax
je 0x40f6ae
lea ecx, [esp + 0x48]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x40f6db
mov ecx, 0x47
lea esi, [esp + 0x48]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x16e]
push ecx
mov word [esp + 0x170], ax
call fcn.00484550
add esp, 0xc
lea esi, [esp + 0x164]
call fcn.0040f4f0
test eax, eax
jl 0x40f75b
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.0040f790
test eax, eax
je 0x40f75b
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x40f74e
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0xc]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x40f766
mov edx, dword [esp + 0xc]
mov dword [edx + 4], 0
jmp 0x40f766
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00484647
add esp, 0x56c
ret 4
Function at 0x40f790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x40f80e
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40f807
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f806
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40f7ff
push ebp
call fcn.00485674
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f7ff
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.0048a600
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x40f852
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4ce544
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f849
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.004849fc
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x40fd20
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x80
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00411110
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
call fcn.00412870
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
call fcn.00412960
mov dword [esp + 0x10], ebx
jmp 0x40fdc0
movzx ebx, byte [esp + ebx + 0x78]
mov eax, ebx
shr eax, 4
movzx ecx, word [eax*2 + str.0123456789abcdef]
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
sub eax, edi
or edx, eax
mov dword [esp + 0x14], ecx
jge 0x40fdf8
mov ecx, edi
mov eax, esi
call fcn.00412050
mov ecx, dword [esi]
mov dx, word [esp + 0x14]
mov word [ecx + ebp*2], dx
test edi, edi
jl 0x40fe91
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40fe91
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [esi]
and ebx, 0xf
movzx ebp, word [ebx*2 + str.0123456789abcdef]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or edx, eax
jge 0x40fe4a
mov ecx, edi
mov eax, esi
call fcn.00412050
mov ecx, dword [esi]
mov word [ecx + ebx*2], bp
test edi, edi
jl 0x40fe91
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40fe91
mov ebx, dword [esp + 0x10]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
inc ebx
xor eax, eax
mov word [edx + edi*2], ax
mov dword [esp + 0x10], ebx
cmp ebx, 0x14
jb 0x40fdc0
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484647
add esp, 0x80
ret
push 0x80070057
call fcn.0040dfb0
int3
Function at 0x410220
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bca38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e97d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x14]
push eax
push 0x202
push ebp
push str.SOFTWARE360SafeLiveup
mov dword [esp + 0x38], ebp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x41034d
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x200
cmp ecx, ebp
je 0x4102eb
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
xor edx, edx
cmp ecx, ebp
setne dl
cmp edx, ebp
jne 0x4102b8
push 0x80004005
call fcn.0040dfb0
push ecx
push eax
call fcn.00484c33
add esp, 8
cmp eax, ebp
je 0x4102eb
mov esi, dword [esi]
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x4102eb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebp
push str.m2_old
push edi
call ebx
mov eax, dword [esp + 0x30]
mov esi, dword [eax]
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
jne 0x410303
mov eax, 0xd
jmp 0x41031b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebp
push 0x4ce4a0
push edi
call ebx
xor edx, edx
cmp eax, ebp
sete dl
mov dword [esp + 0x28], 0xffffffff
mov esi, edx
cmp edi, ebp
je 0x410337
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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
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
Function at 0x4125f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41265e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x41262f
cmp eax, 2
jne 0x41264a
mov eax, dword [esp]
test esi, esi
je 0x412658
test eax, eax
je 0x412653
test al, 1
jne 0x41264a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x412658
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x414270
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x454
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x44c], eax
mov eax, dword [esp + 0x458]
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x468]
push edi
mov dword [eax], ebp
mov dword [esp + 0x30], ecx
mov dword [ecx], ebp
lea ecx, [esp + 0x28]
push ecx
push 8
push ebp
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x4142d8
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], eax
jmp 0x4142e4
xor eax, eax
jmp 0x414406
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
push ebp
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x264]
push edx
push eax
mov esi, 0x104
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4143f2
lea eax, [esp + 0x20]
push eax
push 1
push ebp
lea ecx, [esp + 0x25c]
push ecx
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jne 0x414385
mov ebx, dword [esp + 0x20]
push str.NetCfgInstanceId
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], esi
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x50]
mov dword [esp + 0x20], ebx
call fcn.004125f0
test eax, eax
jne 0x414372
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41439b
cmp ebx, ebp
je 0x414381
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x100
mov dword [esp + 0x24], eax
jl 0x4142e0
jmp 0x4143f2
push str.BusType
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x50]
mov dword [esp + 0x1c], 0x104
call fcn.004125f0
test eax, eax
jne 0x4143e7
mov eax, esi
push eax
call fcn.0048af4f
add esp, 4
cmp eax, 5
jne 0x4143e7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ecx], 1
push edx
mov ecx, ebx
call fcn.00414140
add esp, 4
cmp ebx, ebp
je 0x4143f2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x414401
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484647
add esp, 0x454
ret