joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421190
Capabilities:
Check if file exists
Create service
Delete registry value
Persist via windows service
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c198
push eax
mov dword fs:[0], esp
sub esp, 0x114
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
push 1
push 0
push str.SYSTEM
mov edi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4211e4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [edi + 0x108]
lea eax, [edi + 0x108]
test cl, cl
mov dword [esp + 0x14], eax
je 0x421332
mov al, byte [edi + 4]
lea ebx, [edi + 4]
test al, al
je 0x421332
mov al, byte [edi + 0x20e]
lea ebp, [edi + 0x20e]
test al, al
je 0x421332
push ebx
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00421960
add esp, 0x10
xor esi, esi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
lea eax, [esp + 0x38]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x421292
mov esi, dword [esp + 0x10]
push str.DeleteFlag
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.Start
push esi
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, edi
call fcn.00421150
test eax, eax
je 0x4212b2
test esi, esi
je 0x421320
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x421334
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x421327
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x421327
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push ebp
push eax
push 1
push 1
push 1
push 0xf01ff
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x421309
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x421332
jmp 0x42132b
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call ebx
push edi
call ebx
test esi, esi
je 0x421320
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x421334
test esi, esi
je 0x421332
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x421350
Capabilities:
Check if file exists
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov al, byte [ecx + 0x108]
push ebx
push esi
lea esi, [ecx + 0x108]
test al, al
push edi
je 0x421522
mov al, byte [ecx + 4]
lea ebx, [ecx + 4]
test al, al
je 0x421522
lea eax, [ecx + 0x20e]
mov dword [ebp - 8], eax
cmp byte [eax], 0
je 0x421522
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x421522
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test eax, eax
mov dword [ebp - 4], eax
je 0x421522
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0043a490
mov eax, dword [ebp - 4]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push str.System32Drivers_s
lea ecx, [ebp - 0x31c]
push 0x104
push ecx
call fcn.004219d0
add esp, 0x10
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x114]
lea eax, [eax + eax + 2]
push 0x104
push ecx
mov dword [ebp - 0xc], eax
call fcn.00421960
add esp, 0x10
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x114]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x421522
mov esi, dword [ebp - 4]
push str.DeleteFlag
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 4]
push 4
push edx
push 4
push 0
push str.Type
push esi
mov dword [ebp - 4], 1
call edi
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0
push str.Start
push esi
mov dword [ebp - 4], 1
call edi
lea ecx, [ebp - 4]
push 4
push ecx
push 4
push 0
push str.ErrorControl
push esi
mov dword [ebp - 4], 1
call edi
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x31c]
push edx
push eax
push 2
push 0
push str.ImagePath
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push 0
push str.DisplayName
push esi
call edi
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push 0
push str.Group
push esi
call edi
test esi, esi
je 0x421510
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
lea esp, [ebp - 0x328]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x328]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421560
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x108]
test al, al
je 0x4215c1
mov al, byte [esi + 0x20e]
test al, al
je 0x4215c1
call fcn.00421150
test eax, eax
jne 0x42158f
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4215c1
add esi, 4
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4215c9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4215e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
setne al
pop esi
add esp, 0x1c
ret
Function at 0x425380
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x425394
pop ecx
ret
mov al, byte [esp]
test al, 0x20
je 0x4253a0
xor eax, eax
pop ecx
ret
test al, 7
jne 0x4253a8
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x425460
Capabilities:
Parse url

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
cmp esi, edx
je 0x4254b0
mov eax, dword [esp + 0xc]
cmp eax, edx
je 0x4254b0
push eax
push edx
mov ecx, 1
push edx
push esi
mov dword [eax], 0x3c
mov dword [eax + 8], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x34], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x4254c0
Capabilities:
Check http status code

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
lea edi, [ebx + 0x11c]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push edi
push 0x13
push esi
mov ecx, ebx
call fcn.00425420
test eax, eax
je 0x425552
mov eax, dword [edi]
cmp eax, 0xc8
je 0x425578
cmp eax, 0x197
jne 0x425552
call ebp
push 0
push 7
push 0x2eee
push esi
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
test eax, eax
je 0x42555e
cmp eax, 0x4c7
je 0x425548
cmp eax, 0x2f00
jne 0x425552
mov eax, dword [ebx + 0x118]
test eax, eax
jne 0x425552
jmp 0x4254e9
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov dword [edi], 0xc8
pop edi
mov dword [esp + 0xc], 1
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x425590
Capabilities:
Connect to http server
Create http request

Disassembly:
sub esp, 0x148
push ebp
push esi
push edi
mov edi, dword [esp + 0x158]
mov esi, ecx
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x14], ebp
mov dword [esi + 0x118], ebp
mov dword [esi + 0x11c], ebp
je 0x42578a
call fcn.00425380
test eax, eax
je 0x42578a
cmp dword [esi + 0x118], 1
je 0x42578a
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push edi
mov dword [esp + 0x14], ebp
call fcn.00425460
test eax, eax
je 0x42578a
cmp dword [esp + 0x24], 3
jne 0x42578a
mov eax, dword [esp + 0x15c]
push ebx
or ebx, 0xffffffff
test eax, eax
je 0x42562a
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x425779
mov cl, byte [esi + 0x14]
lea eax, [esi + 0x14]
test cl, cl
jne 0x425639
mov eax, str.Mozila_4.0__compatible__MSIE_5.0__360ANTIARP_
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x42574a
mov ecx, dword [esi + 0x118]
test ecx, ecx
jne 0x42574a
push eax
mov ecx, esi
call fcn.004253b0
push 2
mov ecx, esi
call fcn.004258a0
mov ebp, dword [esp + 0x30]
cmp ebp, 0x7fffffff
ja 0x4256b4
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x58]
mov edx, 0x100
lea eax, [esp + 0x58]
sub edi, ecx
lea ecx, [edx + ebp - 0x100]
test ecx, ecx
je 0x4256ac
mov cl, byte [edi + eax]
test cl, cl
je 0x4256ac
mov byte [eax], cl
inc eax
dec edx
jne 0x425692
jmp 0x4256b0
test edx, edx
jne 0x4256b1
dec eax
mov byte [eax], 0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 3
push 0
push 0
lea eax, [esp + 0x6c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
je 0x42574a
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x42574a
mov edx, dword [esp + 0x48]
push 0
push 0x84000100
push 0x444d68
push 0
push str.HTTP_1.1
push edx
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x42574e
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x42574e
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.004254c0
test eax, eax
je 0x42574e
cmp dword [esi + 0x11c], 0xc8
jne 0x42574e
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x42574e
push ebx
push edi
mov ecx, esi
call fcn.004257a0
mov dword [esp + 0x18], eax
jmp 0x42574e
mov edi, dword [esp + 0x10]
cmp ebx, 0xffffffff
je 0x42575a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x425767
push edi
call esi
test ebp, ebp
je 0x42576e
push ebp
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x425779
push eax
call esi
mov eax, dword [esp + 0x18]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x148
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x148
ret 8
Function at 0x4257a0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
mov ecx, dword [esp + 0x41c]
push edi
push eax
push 5
xor edi, edi
push ecx
mov ecx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00425420
test eax, eax
je 0x4257d7
mov dword [esp + 0x10], 1
push 4
mov ecx, esi
call fcn.004258a0
mov eax, dword [esi + 0x118]
xor ebx, ebx
cmp eax, edi
jne 0x425877
push ebp
mov ebp, dword [esp + 0x428]
mov ecx, dword [esp + 0x424]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push 0x400
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x425876
mov eax, dword [esp + 0x18]
test eax, eax
je 0x425876
cmp ebp, 0xffffffff
je 0x42583e
lea edx, [esp + 0x1c]
push 0
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, ebx
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x42585d
mov edx, dword [esp + 0x10]
push 5
push edx
push edi
mov ecx, esi
call fcn.004258d0
mov eax, dword [esp + 0x14]
inc ebx
test eax, eax
je 0x42586c
cmp edi, dword [esp + 0x10]
jae 0x425876
mov eax, dword [esi + 0x118]
test eax, eax
je 0x4257f8
pop ebp
push 6
mov ecx, esi
call fcn.004258a0
mov ecx, dword [esi + 0x118]
xor eax, eax
test ecx, ecx
pop edi
pop esi
sete al
pop ebx
add esp, 0x410
ret 8
Function at 0x429b10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x429b24
pop ecx
ret
test byte [esp], 7
jne 0x429b2f
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x42a2b0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0xcb0]
call fcn.004338e0
test al, al
je 0x42a2c9
mov ecx, esi
call fcn.0042c700
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x42a3a0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi + 0x2a8]
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 3
ja case.default.0x42a3c2
jmp dword [eax*4 + 0x42a4d4]
mov ecx, dword [esi + 0x2ec]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.default.0x42a3c2
mov edx, dword [esi + 0x2ec]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.default.0x42a3c2
mov eax, dword [esi + 0x2ec]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 4
lea ecx, [esi + 0xcb0]
call fcn.004338e0
test al, al
je 0x42a42b
mov ecx, esi
call fcn.0042c700
test eax, eax
je 0x42a42b
mov eax, 1
pop esi
ret 4
mov ecx, dword [esi + 0xcb4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.default.0x42a3c2
mov edx, dword [esi + 0xcb4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.default.0x42a3c2
mov eax, dword [esi + 0xcb4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 0xc00]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.default.0x42a3c2
mov edx, dword [esi + 0xc00]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.default.0x42a3c2
mov eax, dword [esi + 0xc00]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 0xe54]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.default.0x42a3c2
mov edx, dword [esi + 0xe54]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.default.0x42a3c2
mov eax, dword [esi + 0xe54]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 4
Function at 0x42ae20
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1ec
cmp eax, 2
push esi
mov esi, ecx
jne 0x42aec9
push edi
mov ecx, 0x7a
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 0x1e8
mov dword [esp + 0x10], eax
mov al, byte [esi + 0x16b8]
test al, 1
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0x1677
pop edi
je 0x42ae7a
mov ecx, dword [esi + 0x18a8]
mov dword [esp + 0x1c], ecx
jmp 0x42ae84
mov edx, dword [esi + 0x18ac]
mov dword [esp + 0x1c], edx
lea eax, [esp + 8]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov eax, dword [esi + 0x16b8]
dec eax
mov dword [esi + 0x16b8], eax
jne 0x42af41
mov ecx, dword [esi + 0x16b4]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x16b4], 0
pop esi
add esp, 0x1ec
ret 4
cmp eax, 3
jne 0x42aee9
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
pop esi
add esp, 0x1ec
ret 4
cmp eax, 4
jne 0x42af41
mov eax, dword [esi + 0x18d4]
test eax, eax
je 0x42af27
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x42af1a
cmp dword [esp + 4], 0x103
je 0x42af41
mov edx, dword [esi + 0x18d4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push esi
push 0x42c320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18d4], eax
pop esi
add esp, 0x1ec
ret 4

Function at 0x42b360
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18b8]
test eax, eax
je 0x42b3b3
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [esi + 0x18bc]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42b39f
mov ecx, dword [esi + 0x18bc]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x18b8], 0
mov dword [esi + 0x18bc], 0
pop esi
ret
Function at 0x42be70
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43ca38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
mov ebp, ecx
push eax
call fcn.0042bd00
mov ecx, dword [0x444020]
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
mov byte [esp + 0x68], 1
call fcn.0042c330
mov edi, eax
mov esi, dword [edi]
mov eax, dword [esp + 0x10]
cmp eax, esi
mov byte [esp + 0x64], 2
je 0x42bf33
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42bede
mov ecx, dword [0x444024]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x42bee5
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x42bf1a
mov edi, dword [esi - 8]
lea ecx, [esp + 0x10]
push edi
call fcn.00422f80
test eax, eax
je 0x42bf33
mov ecx, dword [esp + 0x10]
push edi
lea eax, [edi + 1]
push esi
push eax
push ecx
call fcn.004023d0
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [esp + 0x10]
mov byte [edi + eax], 0
jmp 0x42bf33
lea ecx, [esp + 0x10]
call fcn.00405770
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x444024]
mov byte [esp + 0x64], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42bf67
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42bf67
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0043a372
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x6c]
push eax
push esi
mov ecx, ebp
call fcn.0042c4a0
test eax, eax
jle 0x42bff0
mov al, byte [ebp + 0x18d8]
test al, al
jne 0x42bfeb
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42bfeb
mov dl, byte [0x445264]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 0x40
push ecx
push 0
push str.pop_version
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x1c]
test al, al
je 0x42bfeb
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
push esi
call fcn.0042c4a0
xor ebx, ebx
test eax, eax
setg bl
jmp 0x42bff0
mov ebx, 1
mov eax, dword [esp + 0x10]
mov edx, dword [0x444024]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42c01f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42c01f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043a372
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x444024]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42c04e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42c04e
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0043a372
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 4
Function at 0x42c1e0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0042c290
mov esi, eax
test esi, esi
jne 0x42c271
lea eax, [esp + 0x10]
push 0x104
push eax
mov ecx, ebx
call fcn.0042c2c0
test eax, eax
je 0x42c281
lea ecx, [esp + 0x10]
push str.360safe.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42c281
mov ecx, dword [ebx + 4]
push 5
push esi
lea eax, [esp + 0x18]
push esi
push eax
push esi
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x42c281
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov ecx, ebx
call fcn.0042c290
mov esi, eax
test esi, esi
jne 0x42c271
push 0xc8
call ebp
inc edi
cmp edi, 0xa
jl 0x42c24c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

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

Disassembly:
push ecx
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
push esi
push ecx
push str.Path
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x42c314
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42c314
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x42c314
mov eax, 1
pop esi
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x42f020
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
mov word [ebx + 0x3e], 0x4e4
je 0x42f03a
lea edi, [ebx + 4]
jmp 0x42f03c
xor edi, edi
mov esi, dword [esp + 0x120]
mov ecx, 0xd
xor eax, eax
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x42f067
test esi, esi
je 0x42f067
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
lea ecx, [esp + 0x18]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
ja 0x42f08a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret 4
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
ja 0x42f0ad
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x18]
mov dword [ebx + 0x38], eax
push eax
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x42f0d7
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0x44502c
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x42f0ff
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
test ebx, ebx
je 0x42f108
lea edi, [ebx + 4]
jmp 0x42f10a
xor edi, edi
mov esi, dword [esp + 0xc]
mov ecx, 0xd
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x38]
push edx
push eax
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42f141
cmp dword [esp + 0x10], 4
jb 0x42f141
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, 0xfeef04bd
pop edi
pop esi
pop ebx
sete al
add esp, 0x110
ret 4