joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407144
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, reloc.kernel32.dll_E
mov ebx, eax
push reloc.kernel32.dll_E
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405230
add esp, reloc.kernel32.dll_E
pop ebx
ret

Function at 0x40728c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, reloc.kernel32.dll_E
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4073c4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne reloc.kernel32.dll_E
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je reloc.kernel32.dll_E
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne reloc.kernel32.dll_E
cmp dword [ebp - 0x10], 0
jne reloc.kernel32.dll_E
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp reloc.kernel32.dll_E
cmp dword [ebp - 0x10], 0x70000000
jb reloc.kernel32.dll_E
call fcn.00405cd4
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je reloc.kernel32.dll_E
test eax, eax
jne reloc.kernel32.dll_E
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je reloc.kernel32.dll_E
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne reloc.kernel32.dll_E
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp reloc.kernel32.dll_E
test esi, esi
je reloc.kernel32.dll_E
mov eax, dword [ebp - 0x14]
inc ebp
in al, dx
jg reloc.kernel32.dll_E
xor bh, bh
add byte [ecx + esi*8 - 0x7d], dh
jge reloc.kernel32.dll_E
cmp dword [ebp - 0xc], 7
pop es
jne reloc.kernel32.dll_E
test esi, esi
je reloc.kernel32.dll_E
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne reloc.kernel32.dll_E
test esi, esi
je reloc.kernel32.dll_E
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073cb
lea eax, [ebp - 0x14]
call fcn.00403198
ret
add dh, byte [ebp + 6]
or esi, 0x100
mov eax, dword [ebp + 8]
push eax
push esi
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call sub.advapi32.dll_RegOpenKeyExA
pop esi
pop ebp
ret 0xc

Function at 0x407d0c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d560
mov eax, esi
mov edx, 8
test al, 1
je reloc.kernel32.dll_E
shr eax, 1
xor eax, reloc.kernel32.dll_E
jmp reloc.kernel32.dll_E
shr eax, 1
dec edx
jne reloc.kernel32.dll_E
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne reloc.kernel32.dll_E
pop esi
ret
Function at 0x407d40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d55c], 0
jne reloc.kernel32.dll_E
call fcn.00407d0c
push 1
push 0x40d55c
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je reloc.kernel32.dll_E
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d560]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne reloc.kernel32.dll_E
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409438
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, reloc.kernel32.dll_E
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004093ec
test al, al
jne reloc.kernel32.dll_E
xor eax, eax
mov dword [ebp - 4], eax
jmp reloc.kernel32.dll_E
xor eax, eax
push ebp
push 0x409495
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40949c
lea eax, [ebp - 0xc]
call fcn.00409428
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4097d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4098bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00407170
mov edx, dword [ebp - 8]
mov ecx, 0x4098d8
xor eax, eax
call fcn.004096c4
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne reloc.kernel32.dll_E
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je reloc.kernel32.dll_E
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00409254
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004050e4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407700
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call fcn.00409224
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404ab0
call fcn.00405ce0
call fcn.00402eb4
jmp reloc.kernel32.dll_E
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098c6
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret
Function at 0x4099dc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, reloc.kernel32.dll_E
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je reloc.kernel32.dll_E
xor ebx, ebx
jmp reloc.kernel32.dll_E
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00405090
test eax, eax
jne reloc.kernel32.dll_E
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp reloc.kernel32.dll_E
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne reloc.kernel32.dll_E
mov al, byte [ebp - 1]
sub al, 1
jb reloc.kernel32.dll_E
je reloc.kernel32.dll_E
jmp reloc.kernel32.dll_E
call fcn.004074a0
mov edi, eax
jmp reloc.kernel32.dll_E
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp reloc.kernel32.dll_E
xor edi, edi
test di, di
je reloc.kernel32.dll_E
xor ebx, ebx
jmp reloc.kernel32.dll_E
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne reloc.kernel32.dll_E
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je reloc.kernel32.dll_E
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne reloc.kernel32.dll_E
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp reloc.kernel32.dll_E
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne reloc.kernel32.dll_E
xor ebx, ebx
jmp reloc.kernel32.dll_E
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, reloc.kernel32.dll_E
mov edx, edi
and dx, reloc.kernel32.dll_E
movzx edx, dx
cmp eax, edx
jne reloc.kernel32.dll_E
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je reloc.kernel32.dll_E
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne reloc.kernel32.dll_E
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp reloc.kernel32.dll_E
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne reloc.kernel32.dll_E
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x409e8c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, reloc.kernel32.dll_E
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409f5f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409f78
push ebx
push 0x409f84
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne reloc.kernel32.dll_E
mov al, 0x6a
call fcn.00409ae8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409e60
push reloc.kernel32.dll_E
push reloc.kernel32.dll_E
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultiplebjects
dec eax
je reloc.kernel32.dll_E
call fcn.00409e60
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f66
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x40a018
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, reloc.kernel32.dll_E
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je reloc.kernel32.dll_E
jmp reloc.kernel32.dll_E
cmp dword [esi + 0x10], 0x1000
jne reloc.kernel32.dll_E
test byte [esi + 0x15], 1
jne reloc.kernel32.dll_E
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je reloc.kernel32.dll_E
cmp eax, 2
je reloc.kernel32.dll_E
cmp eax, 0x10
je reloc.kernel32.dll_E
cmp eax, 0x20
jne reloc.kernel32.dll_E
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je reloc.kernel32.dll_E
mov bl, 1
xor ebp, ebp
jmp reloc.kernel32.dll_E
mov eax, dword [esi]
add eax, ebp
call fcn.0040a010
add ebp, dword [esp + 8]
les ebp, [esi + 0xc]
jb reloc.kernel32.dll_E
test bl, bl
je reloc.kernel32.dll_E
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je reloc.kernel32.dll_E
mov eax, dword [esi + 4]
cmp eax, edi
je reloc.kernel32.dll_E
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40350d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x403583
cmp dword [edi + 4], 0xffffffff
je 0x403583
push ebx
push esi
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x40355c
and dword [ebp + 8], 0
test ebx, ebx
jne 0x40357d
mov eax, dword [edi + 8]
test eax, eax
je 0x40357d
lea ecx, [ebp + 8]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [edi]
call esi
push dword [ebp + 8]
push dword [edi + 4]
call esi
jmp 0x40357d
test ebx, ebx
je 0x40357d
cmp dword [edi + 0xc], 0
je 0x40357d
push dword [edi + 4]
call esi
push eax
call dword [edi + 0xc]
neg eax
sbb eax, eax
inc eax
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
mov eax, ebx
pop ebx
jmp 0x403585
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x403c82
Capabilities:
Get common file path

Disassembly:
push 0x14
push 0x55d9b8
call fcn.00522d20
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x403db7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x403da5
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 0x24], eax
jmp 0x403ce1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00403e8d
test eax, eax
je 0x403db7
cmp dword [ebp + 8], 0x26
je 0x403d4d
cmp dword [ebp + 8], 0x2b
je 0x403d4d
cmp dword [ebp + 8], 0x25
jne 0x403db7
push str.SysWOW64
mov edi, dword [ebp + 0xc]
push edi
call sub.msvcrt.dll_wcsstr
pop ecx
pop ecx
test eax, eax
je 0x403db7
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 3
push str.System32
jmp 0x403d76
push 0x528110
mov edi, dword [ebp + 0xc]
push edi
call sub.msvcrt.dll_wcsstr
pop ecx
pop ecx
test eax, eax
je 0x403db7
xor ecx, ecx
mov word [eax], cx
add eax, 0xc
cmp word [eax], si
je 0x403db7
mov dword [ebp - 4], 2
push eax
push 0x104
push edi
call fcn.00512780
add esp, 0xc
test eax, eax
je 0x403d93
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x403dc1
mov dword [ebp - 4], esi
jmp 0x403db7
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x403db7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40419f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push edi
mov edi, dword [ebp + 8]
push 0x410
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x207
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.00402af5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00522d04
leave
ret

Function at 0x40495e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x404974
mov eax, 0x80004005
jmp 0x404a21
mov eax, dword [esi]
push ebx
push edi
add eax, eax
push 0x43
mov dword [ebp + 0x14], eax
call fcn.004044d6
mov edi, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
test eax, eax
je 0x4049a2
lea ecx, [ebp + 0x14]
push ecx
push edi
lea ecx, [ebp - 4]
push ecx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4049b8
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4049cb
cmp dword [ebp - 4], 1
je 0x4049cf
cmp dword [ebp - 4], 2
je 0x4049cf
push 0xd
pop eax
mov dword [esi], ebx
jmp 0x404a1f
mov eax, dword [ebp + 0x14]
test edi, edi
je 0x404a16
test eax, eax
je 0x404a0f
test al, 1
je 0x4049e2
dec eax
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x4049eb
push 0xd
pop eax
jmp 0x404a1f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], bx
je 0x404a19
cmp dword [esi], ecx
jbe 0x404a08
xor eax, eax
mov word [edi + ecx*2], ax
mov eax, dword [ebp + 0x14]
add eax, 2
jmp 0x404a19
mov eax, 0xea
jmp 0x404a1f
xor ecx, ecx
mov word [edi], cx
jmp 0x404a19
add eax, 4
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0x10

Function at 0x406918
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x410a47
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410ac1
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.msvcrt.dll_wcslen
pop ecx
test eax, eax
je 0x410abe
push 0x5c
pop ecx
cmp word [esi + eax*2 - 2], cx
je 0x410abe
mov word [esi + eax*2], cx
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x411cfb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411d21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411d21
xor al, al
jmp 0x411d35
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x41213c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00522d80
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push edi
push 0x1000
xor ebx, ebx
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1004]
mov edi, 0x800
push 0x529188
push edi
push eax
call fcn.0041260f
push esi
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.0041260f
push 0x529190
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.0041260f
push esi
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.0041260f
push str.vL
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.0041260f
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.0041260f
push 0x5291e0
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.0041260f
push 0x14
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x412239
call fcn.004124d0
test eax, eax
je 0x412224
call fcn.004124ed
test eax, eax
je 0x412224
push 5
push ebx
push ebx
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x41222d
push 5
push ebx
push ebx
push str.http:__down.360safe.com_setup.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], ebx
jne 0x41224f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret
push ebx
call fcn.00516bc0
int3
Function at 0x412256
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412270
test al, 0x10
jne 0x412270
xor eax, eax
inc eax
jmp 0x412272
xor eax, eax
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x800
lea eax, [ebp - 0x804]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x80c], 1
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], esi
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4125a9
push str.360ver.dll
lea eax, [ebp - 0x804]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4125a9
lea eax, [ebp - 0x804]
push eax
call fcn.00410b9b
mov edi, eax
pop ecx
test edi, edi
je 0x4125a9
push str.IsBetaVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4125ac
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00522d04
leave
ret

Function at 0x4125d7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00410bb8
pop ecx
test eax, eax
je 0x4125ec
xor eax, eax
inc eax
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41260b
push 1
push 0x569088
push dword [ebp + 8]
call fcn.0041213c
add esp, 0xc
xor eax, eax
pop ebp
ret
Function at 0x4134b4
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x574150
mov dword [0x574150], 0x11c
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413579
push 0x40
pop esi
push esi
push eax
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c], 1
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41354e
movsx eax, byte [ebp - 0x44]
sub eax, 0x30
mov dword [0x574160], 2
mov dword [0x574154], eax
lea eax, [ebp - 0x42]
push eax
call sub.msvcrt.dll_atoi
mov edx, eax
pop ecx
mov dword [0x574158], edx
jmp 0x41357f
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, ax
xor ecx, ecx
shr edx, 8
cmp al, 4
movzx esi, al
seta cl
mov dword [0x574154], esi
inc ecx
mov dword [0x574158], edx
mov dword [0x574160], ecx
jmp 0x413585
mov edx, dword [0x574158]
mov esi, dword [0x574154]
cmp esi, 6
ja 0x413591
jne 0x4135af
cmp edx, 2
jb 0x4135af
push str.RtlGetVersion
push 0x529884
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4135af
push edi
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00522d04
leave
ret