joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc610
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e97d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4ee52c]
xor edi, edi
cmp ecx, edi
jne 0x409bfb
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 0x409c08
mov dword [ebp - 0x14], edi
jmp 0x409c20
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x409cbd
mov ecx, dword [0x4ee52c]
mov eax, dword [ecx]
cmp eax, edi
je 0x409be7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409be7
mov dword [ebp - 4], edi
mov ebx, 0x4ee52c
call fcn.00409cd0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x409c5e
mov dword [ebp - 0x18], 1
push 0x4df48c
lea eax, [ebp - 0x18]
push eax
call fcn.004841d6
mov ecx, esi
mov eax, dword [0x4ee52c]
call fcn.00409f60
test eax, eax
jne 0x409c83
mov dword [ebp - 0x1c], 4
push 0x4df48c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004841d6
mov dword [ebp - 4], 0xffffffff
jmp 0x409ca8
mov edx, dword [0x4ee52c]
mov eax, dword [edx]
test eax, eax
je 0x409cbb
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 0x409cd0
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 0x409cfd
xor ecx, ecx
jmp 0x409d09
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x409dbd
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 0x409d30
mov dword [esp + 0xc], esi
jmp 0x409d90
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x409d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409d7c
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 0x409d90
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x409d90
push 0x4cd478
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x409d90
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 0x409db3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x409d22
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x409dd1
mov ecx, dword [ebx]
add ecx, 8
call fcn.0040a060
test eax, eax
je 0x409dd1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret
Function at 0x409de0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4bc5eb
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.004840d0
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 0x4df48c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004841d6
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 0x4bcacb
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.004840d0
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.004840be
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.00487a55
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.004841c7
add esp, 0x2d4
ret
Function at 0x40b490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bce34
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 0x4bd210
call fcn.00484b09
add esp, 4
mov dword [esp + 0x20], edi
test byte [0x4ee78c], 2
jne 0x40b54d
or dword [0x4ee78c], 2
mov dword [esp + 0x20], ebx
push 0x4bd1f0
mov dword [0x4ee76c], 0
call fcn.00484b09
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.004841c7
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.004841c7
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.004840d0
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.004841c7
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.004841c7
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.004848d0
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.004840d0
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push 0x4cdbf0
push ecx
call fcn.00486f8f
add esp, 0xc
push 0x800
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00486f4f
add esp, 0xc
push 0x800
lea eax, [esp + 0xc]
push 0x4cdbf8
push eax
call fcn.00486f4f
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.00486f4f
add esp, 0xc
push 0x800
lea edx, [esp + 0xc]
push 0x4cdc24
push edx
call fcn.00486f4f
add esp, 0xc
push 0x800
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00486f4f
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push 0x4cdc48
push ecx
call fcn.00486f4f
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 0x4cdaf8
push str.http:__down.360safe.com_setup.exe
call fcn.004899ec
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.00486eb7
mov ecx, dword [esp + 0x100c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004841c7
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.004840d0
push 0x11c
push 0
push ebx
mov dword [esp + 0x60], 0x11c
call fcn.004840d0
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.004840d0
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.004841c7
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.004851f2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f7ff
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.0048a180
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 0x4ce474
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.0048457c
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.004841c7
add esp, 0x80
ret
push 0x80070057
call fcn.0040dfb0
int3
Function at 0x410220
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bc508
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.004847b3
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 0x4ce3d0
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