joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fa0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x160
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x15c], eax
push esi
push edi
mov edi, ecx
push edi
mov dword [edi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, 2
test eax, eax
jne 0x402071
push 0x3f
push eax
mov byte [esp + 0x12c], al
lea eax, [esp + 0x12d]
push eax
call fcn.00453e20
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x10]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40204d
movsx ecx, byte [esp + 0x124]
lea edx, [esp + 0x126]
sub ecx, 0x30
push edx
mov dword [edi + 0x10], esi
mov dword [edi + 4], ecx
call fcn.00450a65
add esp, 4
mov dword [edi + 8], eax
jmp 0x402071
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov edx, 4
mov dword [edi + 8], eax
cmp edx, ecx
sbb eax, eax
neg eax
inc eax
mov dword [edi + 4], ecx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
cmp eax, 6
ja 0x402080
jne 0x4020e9
cmp dword [edi + 8], esi
jb 0x4020e9
push 0x110
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00453e20
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4020e9
lea edx, [esp + 0x10]
push edx
call eax
test eax, eax
mov eax, 1
jne 0x4020ee
mov ecx, 0x45
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.0044fcda
add esp, 0x160
ret
mov eax, 1
mov ecx, dword [esp + 0x164]
pop edi
pop esi
xor ecx, esp
call fcn.0044fcda
add esp, 0x160
ret
Function at 0x402f90
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00453e20
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x402ff2
cmp dword [esp + 8], 0
jne 0x402ff2
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044fcda
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0044fcda
add esp, 0x118
ret
Function at 0x403330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x208], eax
xor ecx, ecx
mov eax, 0x208
mov edx, 2
mul edx
seto cl
push ebx
push ebp
push esi
push edi
mov edi, 0x48b8e8
neg ecx
or ecx, eax
push ecx
call fcn.0044d3e0
push 0x410
mov esi, eax
push 0
push esi
call fcn.00453e20
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00453e20
add esp, 0x1c
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, 0x2a
lea esp, [esp]
cmp dword [edi], 0
je 0x4033d7
lea eax, [esp + 0x10]
mov ecx, 0x208
mov edx, esi
call fcn.00406290
mov eax, dword [edi]
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov word [esi], cx
add edi, 4
sub ebx, 1
jne 0x4033b0
push esi
call fcn.004501ef
mov ecx, dword [esp + 0x21c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fcda
add esp, 0x20c
ret
Function at 0x404050
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x40406e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esi + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x48b9c0
je 0x404099
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404099
mov edx, dword [esi + 0x10]
sub edx, 0xc
push edx
call fcn.004501ef
add esp, 4
push esi
call fcn.0044fccf
add esp, 4
mov eax, esi
ret

Function at 0x404570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x320
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x31c], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4045cb
push 0x104
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.ntdll.dll
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x404613
push str.RtlGetVersion
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404613
lea ecx, [esp]
push ecx
call eax
test eax, eax
jl 0x404613
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esi], edx
mov dword [edi], eax
mov eax, 1
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.0044fcda
add esp, 0x320
ret
mov ecx, dword [esp + 0x31c]
xor ecx, esp
xor eax, eax
call fcn.0044fcda
add esp, 0x320
ret

Function at 0x4046e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, ecx
test esi, esi
je 0x4047e1
cmp word [esi], 0
je 0x4047e1
push edi
call fcn.004046b0
mov edi, eax
test edi, edi
je 0x4047cc
mov eax, esi
lea edx, [eax + 2]
jmp 0x404720
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404720
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push 0
push 0x477da8
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x4047b2
mov ecx, dword [str.Environment]
mov edx, dword [0x477d1c]
mov eax, dword [0x477d20]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x477d24]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 8]
push ecx
push 0xbb8
mov dword [esp + 0x18], edx
mov edx, dword [0x477d28]
push 1
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x28], eax
mov eax, dword [0x477d2c]
push 0x1a
push 0xffff
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044fcda
add esp, 0x20
ret
xor esi, esi
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044fcda
add esp, 0x20
ret
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044fcda
add esp, 0x20
ret
Function at 0x404800
Capabilities:
Get common file path
Set environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00453e20
add esp, 0xc
call fcn.00404630
cmp eax, 5
ja case.default.0x40483c
jmp dword [eax*4 + 0x40497c]
push 0
push 0x28
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404962
push esi
push edi
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404865
mov ecx, 0xa
mov esi, str.Local_SettingsTemp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
jmp case.default.0x40483c
push 0
push 0x1a
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404962
lea eax, [esp]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4048a5
mov ecx, dword [str.LocalTemp]
mov edx, dword [0x477d84]
mov dword [eax], ecx
mov ecx, dword [0x477d88]
mov dword [eax + 4], edx
mov edx, dword [0x477d8c]
mov dword [eax + 8], ecx
mov ecx, dword [0x477d90]
mov dword [eax + 0xc], edx
mov edx, dword [0x477d94]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jmp case.default.0x40483c
push 0x208
lea eax, [esp + 4]
push 0
push eax
call fcn.00453e20
lea eax, [esp + 0xc]
add esp, 0xc
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x404903
mov ecx, dword [str.C:Temp]
mov edx, dword [0x477d9c]
mov dword [eax], ecx
mov ecx, dword [0x477da0]
mov dword [eax + 4], edx
mov edx, dword [0x477da4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp]
push eax
push 0x477da8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x404962
lea ecx, [esp]
call fcn.004046e0
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044fcda
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.0044fcda
add esp, 0x20c
ret
Function at 0x4049a0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
push esi
push edi
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
mov esi, ecx
call fcn.00453e20
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x400
call ebx
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x10]
push edx
call ebp
mov edi, eax
cmp edi, 1
je 0x404a3c
call fcn.00404800
mov edi, eax
test edi, edi
je 0x404a40
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00453e20
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x400
call ebx
lea edx, [esp + 0x10]
push edx
call ebp
test eax, eax
jne 0x404a3c
push eax
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x404a40
test edi, edi
jne 0x404a44
xor eax, eax
jmp 0x404a5e
lea ecx, [esp + 0x10]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
call fcn.0040e190
mov eax, 1
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fcda
add esp, 0x804
ret

Function at 0x405380
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x490400]
cmp dword [eax - 8], 0
jne 0x405445
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push edi
call esi
mov ecx, 0x3ff
and ax, cx
movzx edi, ax
call esi
shr ax, 0xa
movzx ecx, ax
movzx eax, di
add eax, 0xfffffffc
cmp eax, 0x81
ja case.0x4053c2.5
movzx edx, byte [eax + 0x40545c]
jmp dword [edx*4 + 0x405448]
mov eax, 2
cmp ax, cx
mov eax, 0x490400
jne 0x4053e6
mov edi, 0x477e4c
call fcn.0040e210
pop edi
pop esi
pop ebx
ret
mov edi, str.zh_TW
call fcn.0040e210
pop edi
pop esi
pop ebx
ret
push 0x477e60
push 0x477e60
jmp 0x405430
mov edi, 0x477e68
mov eax, 0x490400
call fcn.0040e210
pop edi
pop esi
pop ebx
ret
mov edi, 0x477e70
mov eax, 0x490400
call fcn.0040e210
pop edi
pop esi
pop ebx
ret
push 0x477e4c
push 0x477e4c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov esi, 0x490400
call fcn.0040e190
pop edi
pop esi
pop ebx
ret
Function at 0x405c60
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x4871a0]
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 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405cb3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044fcda
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 0x405d3b
cmp dword [esp + 0xc], 0x40
jne 0x405d3b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x405d3b
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 0x405d3b
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x405d3b
cmp dword [esp + 0xc], 0xf8
jne 0x405d3b
cmp dword [esp + 0x10], 0x4550
jne 0x405d3b
cmp word [esp + 0x16], bx
je 0x405d3b
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.0044fcda
mov esp, ebp
pop ebp
ret

Function at 0x405ee0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f5c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4871a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00405bf0
add esp, 4
test eax, eax
je 0x405f39
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 8], 0
je 0x405f4a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405f20
cmp dword [ebp + 0xc], 0
je 0x405f62
push ebx
call fcn.00405c60
add esp, 4
test eax, eax
sete al
test al, al
jne 0x405f20
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.00405e90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40bcf0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40bd00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40c2a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x40c315
xor eax, eax
cmp ecx, edi
je 0x40c303
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x40c323
cmp ecx, edi
je 0x40c3c0
push ecx
jmp 0x40c3ba
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40c38e
jmp 0x40c350
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040c2a0
mov ebp, eax
cmp ebp, edi
jne 0x40c3dd
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40c350
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c3a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c3c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fcda
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c3ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x40c3c2
Function at 0x40ce80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x46d080
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4871a0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40ceff
call fcn.0040b5d0
mov esi, eax
jmp 0x40cfe1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40cf1b
call fcn.0040b5d0
jmp 0x40cfd8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40cf34
call fcn.0040b5d0
jmp 0x40cfd8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40cf68
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40cf56
lea eax, [ebp]
call fcn.0040bc90
lea esi, [ebp - 0x1c]
call fcn.0040bd30
mov eax, 0x8007000e
jmp 0x40cff3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040b590
mov dword [ebp - 4], 1
jmp 0x40cf91
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40cf9f
mov esi, 0x8007000e
jmp 0x40cfda
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40cfbd
call fcn.0040b5d0
jmp 0x40cfd8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040cd30
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40cff1
lea eax, [ebp]
call fcn.0040bc90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0044fcda
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412890
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, dword [esp + 8]
je 0x4128c3
mov eax, dword [esi - 0x60]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [esi - 0x64]
call fcn.00412170
mov eax, dword [esi - 0x60]
call fcn.00427f00
mov eax, 1
pop esi
ret 8
mov ecx, dword [esi - 0x60]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x648], 0
je 0x4128e2
push 1
lea eax, [esi - 0x64]
call fcn.00412170
mov eax, 1
pop esi
ret 8

Function at 0x412f00
Capabilities:
Hide graphical window

Disassembly:
push esi
test eax, eax
je 0x412f0a
lea esi, [eax - 0x80]
jmp 0x412f0c
xor esi, esi
cmp byte [eax + 0x1c], 0
je 0x412f40
mov eax, dword [esi + 4]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp edi, 2
jne 0x412f31
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x412f45
test edi, edi
jne 0x412f40
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x412f45
cmp edi, 1
je 0x412f5b
mov ecx, ebx
shr ecx, 0x10
movsx edx, cx
movsx eax, bx
push edx
push eax
sub esi, 0xffffff80
push esi
call fcn.004130b0
xor eax, eax
pop esi
ret

Function at 0x414080
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x4781e0
push eax
call fcn.0045214b
mov edi, eax
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x4140cc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.0044fcda
mov esp, ebp
pop ebp
ret
push edi
push 0x400
lea eax, [esp + 0x68]
push 1
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00452771
add esp, 0x10
cmp eax, esi
je 0x414137
lea ecx, [ecx]
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0xc]
call fcn.004430a0
push edi
push 0x400
lea edx, [esp + 0x6c]
push 1
push edx
call fcn.00452771
add esp, 0x14
cmp eax, esi
jne 0x414110
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00443140
push edi
call fcn.004521d9
mov ecx, dword [esp + 0x468]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044fcda
mov esp, ebp
pop ebp
ret

Function at 0x414590
Capabilities:
Create thread

Disassembly:
xor edx, edx
push edi
mov edi, 0x414770
lea eax, [esi + 8]
test edi, edi
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], 0x414770
mov dword [esi + 0x1c], ecx
mov dword [esi + 4], edx
mov dword [eax], 0xffffffff
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
pop edi
je 0x4145d7
push eax
push edx
push ecx
push 0x414770
push edx
push edx
call fcn.0045099f
add esp, 0x18
mov dword [esi + 4], eax
mov eax, esi
ret
Function at 0x414940
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x820
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00453e20
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4149c6
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0044fcda
add esp, 0x820
ret
push str.360ver.dll
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4149a9
lea edx, [esp + 0x18]
push edx
lea edi, [esp + 0x14]
lea ebx, [esp + 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
call fcn.00405e30
add esp, 4
cmp dword [esp + 0x10], 0
je 0x4149a9
mov eax, ebx
push eax
call fcn.004148e0
mov esi, eax
test esi, esi
je 0x4149a9
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 + 0x824]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044fcda
add esp, 0x820
ret

Function at 0x414a60
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100c
call fcn.00456af0
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x1004], eax
push 0x1000
lea eax, [esp + 4]
push 0
push eax
call fcn.00453e20
add esp, 0xc
push 0x800
lea ecx, [esp + 4]
push 0x478358
push ecx
call fcn.0045203b
add esp, 0xc
push 0x800
lea edx, [esp + 4]
push esi
push edx
call fcn.00452b1c
add esp, 0xc
push 0x800
lea eax, [esp + 4]
push 0x478360
push eax
call fcn.00452b1c
add esp, 0xc
push 0x800
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00452b1c
add esp, 0xc
push 0x800
lea edx, [esp + 4]
push str.vL
push edx
call fcn.00452b1c
add esp, 0xc
push 0x800
lea eax, [esp + 4]
push edi
push eax
call fcn.00452b1c
add esp, 0xc
push 0x800
lea ecx, [esp + 4]
push 0x4783b0
push ecx
call fcn.00452b1c
add esp, 0xc
push 0x14
push esi
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x414b84
push 0xc8
push 0x478260
push str.http:__down.360safe.com_setup.exe
call fcn.00464a84
add esp, 0xc
test eax, eax
jne 0x414b6c
call fcn.00414940
test eax, eax
je 0x414b6c
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x414b77
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]
push 0
call fcn.00452dfc
int3