joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a070
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x264]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a1a9
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], ebp
jne 0x40a1a2
cmp eax, ebp
je 0x40a1a2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x234]
push ecx
push esi
mov dword [esp + 0x24], ebp
call edi
test eax, eax
je 0x40a1a2
mov edx, 0x5a4d
cmp word [esp + 0x228], dx
jne 0x40a1a2
mov ecx, dword [esp + 0x264]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
mov dword [esp + 0x28], ebp
call ebx
cmp eax, 0xffffffff
je 0x40a1a2
push ebp
lea edx, [esp + 0x14]
push edx
push 0xf8
lea eax, [esp + 0x34]
push eax
push esi
call edi
test eax, eax
je 0x40a1a2
mov ecx, 0x8664
cmp word [esp + 0x2c], cx
jne 0x40a1c4
mov eax, dword [esp + 0x264]
push ebp
lea edx, [esp + 0x28]
push edx
push eax
push esi
mov dword [esp + 0x34], ebp
call ebx
cmp eax, 0xffffffff
je 0x40a1a2
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x108
lea edx, [esp + 0x12c]
push edx
push esi
call edi
test eax, eax
je 0x40a1a2
mov eax, dword [esp + 0x1c8]
cmp eax, ebp
je 0x40a1a2
mov edi, dword [esp + 0x1cc]
cmp edi, ebp
jne 0x40a1da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x260
ret
mov eax, dword [esp + 0xc0]
cmp eax, ebp
je 0x40a1a2
mov edi, dword [esp + 0xc4]
cmp edi, ebp
je 0x40a1a2
lea ecx, [edi + eax]
cmp ecx, dword [esp + 0x1c]
ja 0x40a1a2
cmp ecx, eax
jb 0x40a1a2
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x40a1a2
mov ebx, dword [esp + 0x20]
push edi
mov eax, ebx
call fcn.0040b650
mov edx, dword [ebx + 0x10]
sub edx, dword [ebx + 0xc]
jne 0x40a20f
call fcn.004726ec
mov eax, dword [ebx + 0xc]
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x40a1a3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40a1ab
Function at 0x40a240
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x496f6d
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x18]
push eax
mov dword [esi], vtable.SignInfoCollecter.0
call fcn.00407e10
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [esi + 0x30]
push ecx
call fcn.00407e10
mov byte [esp + 0x14], 1
lea edx, [esi + 0x48]
push edx
call fcn.00407e10
mov byte [esp + 0x14], 2
lea eax, [esi + 0x60]
push eax
call fcn.00407e10
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x78]
push ecx
call fcn.00407e10
mov byte [esp + 0x14], 4
mov eax, 0xf
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa4], ebx
mov byte [esi + 0x94], bl
mov byte [esp + 0x14], 5
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc0], ebx
mov byte [esi + 0xb0], bl
mov byte [esp + 0x14], 6
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40b300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x496f6d
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 5
cmp dword [esi + 0xc4], 0x10
jb 0x40b346
mov eax, dword [esi + 0xb0]
push eax
call fcn.00471eaf
add esp, 4
xor ebx, ebx
mov dword [esi + 0xc4], 0xf
mov dword [esi + 0xc0], ebx
mov byte [esi + 0xb0], bl
mov byte [esp + 0x14], 4
cmp dword [esi + 0xa8], 0x10
jb 0x40b37b
mov eax, dword [esi + 0x94]
push eax
call fcn.00471eaf
add esp, 4
mov dword [esi + 0xa8], 0xf
mov dword [esi + 0xa4], ebx
mov byte [esi + 0x94], bl
mov byte [esp + 0x14], 3
lea eax, [esi + 0x78]
push eax
call fcn.0040b700
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x60]
push ecx
call fcn.0040b700
mov byte [esp + 0x14], 1
lea edx, [esi + 0x48]
push edx
call fcn.0040b700
mov byte [esp + 0x14], bl
lea eax, [esi + 0x30]
push eax
call fcn.0040b700
mov dword [esp + 0x14], 0xffffffff
add esi, 0x18
push esi
call fcn.0040b700
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40cda0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00476ef0
mov edx, dword [esp + 0x220]
add esp, 0xc
push 0
push edx
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40ce02
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00471eba
add esp, 0x20c
ret
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce10
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00402bd0
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00471eba
add esp, 0x20c
ret

Function at 0x40cf20
Capabilities:
Create directory

Disassembly:
push esi
mov esi, eax
mov ecx, esi
call fcn.0040ce50
test eax, eax
jne 0x40cf32
xor eax, eax
pop esi
ret
push 0x12
push str.User_Data_tcdump_
mov eax, esi
call fcn.004037d0
cmp dword [esi + 0x18], 8
jb 0x40cf4b
mov esi, dword [esi + 4]
jmp 0x40cf4e
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cf68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cf2e
mov eax, 1
pop esi
ret
Function at 0x40d810
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x49a988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, edi
call fcn.0040ccf0
test eax, eax
je 0x40d940
push 0xc
push str.360base.dll
mov eax, edi
call fcn.004037d0
mov ebx, 8
lea esi, [edi + 4]
cmp dword [edi + 0x18], ebx
jb 0x40d86f
mov eax, dword [esi]
jmp 0x40d871
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d894
cmp dword [edi + 0x18], ebx
jb 0x40d885
mov eax, dword [esi]
jmp 0x40d887
mov eax, esi
call fcn.0046ce70
test eax, eax
jne 0x40d991
mov ebx, 7
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov word [esp + 0x14], ax
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x10]
call fcn.0040de70
test eax, eax
je 0x40d915
push 0xc
push str.360base.dll
lea eax, [esp + 0x18]
call fcn.004037d0
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40d8da
lea eax, [esp + 0x14]
call fcn.0046ce70
test eax, eax
jne 0x40d944
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x40d8ff
mov eax, dword [esp + 0x14]
push eax
call fcn.00471eaf
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov word [esp + 0x14], cx
xor eax, eax
jmp 0x40d996
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x40d931
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov word [esp + 0x14], dx
xor eax, eax
jmp 0x40d996
mov eax, 8
cmp dword [edi + 0x18], eax
jb 0x40d950
mov esi, dword [esi]
cmp dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
jae 0x40d95e
lea eax, [esp + 0x14]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d980
mov dword [esp + 0x38], 0xffffffff
lea esi, [esp + 0x10]
call fcn.00428ca0
xor eax, eax
jmp 0x40d996
mov dword [esp + 0x38], 0xffffffff
lea esi, [esp + 0x10]
call fcn.00428ca0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00471eba
add esp, 0x2c
ret
Function at 0x40d9c0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x48
mov esi, ecx
mov dword [esp + 0x1c], eax
xor eax, eax
lea ecx, [esp + 0x34]
push ebp
push ecx
xor edi, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.00476ef0
add esp, 0xc
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocString
mov eax, esi
call fcn.00403950
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40dac3
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40daaf
cmp dword [esp + 0x14], ebp
jne 0x40daaf
push 0x512dc0
push esi
call fcn.00472b75
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40daaf
push ebp
lea eax, [esp + 0x20]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40daaf
push edi
mov eax, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.0041ddf0
mov ecx, dword [esp + 0x1c]
add esp, 4
lea esi, [esp + 0x20]
call fcn.0041de90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
je 0x40dac3
push edi
call fcn.00472eb2
add esp, 4
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00471eba
add esp, 0x70
ret
Function at 0x40dae0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push ebp
push esi
xor ebp, ebp
push 0x206
lea edx, [esp + 0x22]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebp
mov word [esp + 0x28], cx
call fcn.00476ef0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x14], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
je 0x40dc31
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
push ebx
push 0x512dc0
neg ecx
or ecx, eax
push ecx
call fcn.00472b75
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40dc0a
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dc0a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40dc0a
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push 0x4a677c
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04x_s
push eax
mov eax, 0x104
call fcn.0040dc50
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dc0a
mov edx, dword [esp + 0x10]
mov ebp, 1
test edx, edx
jne 0x40dbe4
mov edx, 0x4a5b20
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dbf0
sub eax, esi
sar eax, 1
push eax
mov eax, dword [esp + 0x1c]
push edx
call fcn.004086f0
test ebx, ebx
je 0x40dc17
push ebx
call fcn.00472eb2
add esp, 4
pop ebx
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00471eba
add esp, 0x220
ret
mov ecx, dword [esp + 0x224]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00471eba
add esp, 0x220
ret
Function at 0x40dcc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49a196
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov esi, ecx
xor edi, edi
push 1
mov edx, str.Software360360se6Update64ClientState02E720BD_2B50_4404_947C_65DBE64F6970
mov ecx, SysReAllocString
mov dword [esp + 0x18], edi
call fcn.0040ee60
add esp, 8
test eax, eax
jne 0x40dd2a
mov dword [0x511f60], 1
jmp 0x40dd4b
lea ecx, [esp + 0x10]
push ecx
push 1
mov edx, str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
mov ecx, SysReAllocString
call fcn.0040ee60
add esp, 8
test eax, eax
jne 0x40de2f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2e]
push eax
mov word [esp + 0x30], dx
call fcn.00476ef0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ddf3
cmp eax, 2
jne 0x40de2f
push 9
sub esp, 0x1c
mov edx, str.initredirectrule
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.004028a0
mov dword [esp + 0x258], 0
sub esp, 0x1c
mov edx, str.initruleerr
mov eax, esp
mov dword [esp + 0x5c], esp
call fcn.004028a0
mov byte [esp + 0x274], 1
mov dword [esp + 0x274], 0xffffffff
call fcn.00408160
add esp, 0x3c
jmp 0x40de2f
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40de2f
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40de10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00402bd0
mov edi, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40de3e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00471eba
add esp, 0x230
ret
Function at 0x40e190
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00476ef0
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360se6.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40e255
xor edx, edx
cmp dx, word [esp + 8]
je 0x40e255
push str.360se.exe
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push 0x4a69f8
push ecx
mov ecx, 0x104
call fcn.00404a10
add esp, 0x10
test eax, eax
jl 0x40e255
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e255
push esi
lea edx, [esp + 0xc]
call fcn.00402910
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00471eba
add esp, 0x214
ret
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.00471eba
add esp, 0x214
ret
Function at 0x40e270
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49ad2c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebp, ebp
test byte [0x513aa0], 1
jne 0x40e2c6
or dword [0x513aa0], 1
mov dword [esp + 0x20], ebp
call fcn.0045ac80
push 0x49be70
call fcn.00471ff0
add esp, 4
mov dword [esp + 0x20], 0xffffffff
push 0x517dfc
xor esi, esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x513adc], ebp
je 0x40e2ef
push 0xffffffffffffffff
push ebp
push 0x513ac8
mov eax, edi
call fcn.00402a90
mov esi, 1
push 0x517dfc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, ebp
je 0x40e31d
cmp dword [edi + 0x18], 8
jb 0x40e30f
mov eax, dword [edi + 4]
jmp 0x40e312
lea eax, [edi + 4]
push eax
call ebx
cmp eax, ebp
jne 0x40e3bc
mov esi, edi
call fcn.0040dff0
test eax, eax
je 0x40e3d4
cmp dword [edi + 0x18], 8
jb 0x40e337
mov eax, dword [edi + 4]
jmp 0x40e33a
lea eax, [edi + 4]
push eax
call ebx
test eax, eax
je 0x40e3d4
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebp
mov ebx, 7
xor ecx, ecx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebp
push edi
mov word [eax + 4], cx
call fcn.00402a90
mov dword [esp + 0x3c], 1
call fcn.004038e0
mov dword [esp + 0x3c], 0xffffffff
mov esi, eax
call fcn.0045b100
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebp
xor edx, edx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebp
push edi
mov word [eax + 4], dx
call fcn.00402a90
mov dword [esp + 0x3c], 2
call fcn.004038e0
mov dword [esp + 0x3c], 0xffffffff
call fcn.0045b1a0
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov esi, edi
call fcn.0040e190
test eax, eax
je 0x40e449
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebp
mov ebx, 7
xor ecx, ecx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebp
push edi
mov word [eax + 4], cx
call fcn.00402a90
mov dword [esp + 0x3c], 3
call fcn.004038e0
mov dword [esp + 0x3c], 0xffffffff
mov esi, eax
call fcn.0045b100
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebp
xor edx, edx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebp
push edi
mov word [eax + 4], dx
call fcn.00402a90
mov dword [esp + 0x3c], 4
jmp 0x40e3aa
test byte [0x513aa0], 1
jne 0x40e47b
or dword [0x513aa0], 1
mov dword [esp + 0x20], 5
call fcn.0045ac80
push 0x49be70
call fcn.00471ff0
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov ecx, edi
call fcn.0045b010
test eax, eax
je 0x40e48b
mov ebp, 1
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40e500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x493568
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServices360bpsvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40e5ce
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.LAST_DMP_TIME
mov dword [esp + 0x34], edi
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x40e596
cmp dword [esp + 0x18], 0xb
je 0x40e5da
push esi
xor ebp, ebp
call fcn.0040e4a0
add esp, 4
test eax, eax
je 0x40e5b3
push esi
call fcn.0040e660
add esp, 4
mov ebp, 1
mov dword [esp + 0x40], 0xffffffff
cmp ebx, edi
je 0x40e5ca
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
mov eax, ebp
jmp 0x40e63a
mov dword [esp + 0x40], 0xffffffff
xor eax, eax
jmp 0x40e63a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
mov dword [esi + 4], ecx
mov dword [esi], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0040e4a0
add esp, 4
test eax, eax
je 0x40e61e
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x40e61e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esi + 4], edx
mov dword [esi], eax
mov dword [esp + 0x40], 0xffffffff
cmp ebx, edi
je 0x40e635
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
mov eax, 1
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x40e660
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x493538
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
lea eax, [esp + 0x10]
push eax
push 0x20006
push edi
push str.SYSTEMCurrentControlSetServices360bpsvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40e715
mov eax, dword [ebx]
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 4]
xor ecx, ecx
or ecx, eax
push 8
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
push 0xb
push edi
xor ebx, ebx
push str.LAST_DMP_TIME
or edx, ebx
mov dword [esp + 0x30], edi
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e721
mov dword [esp + 0x28], 0xffffffff
cmp esi, edi
je 0x40e711
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
xor eax, eax
jmp 0x40e73d
mov dword [esp + 0x28], 0xffffffff
xor eax, eax
jmp 0x40e73d
mov dword [esp + 0x28], 0xffffffff
cmp esi, edi
je 0x40e738
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
mov eax, 1
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x40e760
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x493508
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
lea eax, [esp + 0xc]
push eax
push 0x20006
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40e7ff
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push esi
push ecx
mov dword [esp + 0x28], esi
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e80b
mov dword [esp + 0x20], 0xffffffff
cmp edi, esi
je 0x40e7fb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
xor eax, eax
jmp 0x40e827
mov dword [esp + 0x20], 0xffffffff
xor eax, eax
jmp 0x40e827
mov dword [esp + 0x20], 0xffffffff
cmp edi, esi
je 0x40e822
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
mov eax, 1
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret