joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4145a8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [0xa2c044]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [esp + 8], 0
jne 0x4145df
mov eax, 0
jmp 0x4147af
not dword [esp + 0xc]
jmp 0x41475d
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
sub dword [esp + 4], 8
cmp dword [esp + 4], 7
ja 0x4145e8
cmp dword [esp + 4], 0
je 0x4147a9
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov dword [esp + 8], edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
shr eax, 8
xor eax, edx
mov dword [esp + 0xc], eax
sub dword [esp + 4], 1
cmp dword [esp + 4], 0
jne 0x41476f
mov eax, dword [esp + 0xc]
not eax
mov ecx, dword [esp + 0x1c]
sub ecx, dword [0xa2c044]
je 0x4147c0
call fcn.004016b0
add esp, 0x2c
ret
Function at 0x4163a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x68
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [0xa2c044]
mov dword [esp + 0x5c], eax
xor eax, eax
mov word [esp + 0x2e], 0
mov dword [esp + 0x30], 1
jmp 0x416417
mov eax, dword [esp + 0x30]
lea edx, [eax - 1]
mov eax, dword [esp + 0x1c]
add edx, 0x7e0
movzx edx, word [eax + edx*2 + 0x18]
movzx eax, word [esp + 0x2e]
add eax, edx
add eax, eax
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x30]
movzx edx, word [esp + 0x2e]
mov word [esp + eax*2 + 0x3c], dx
add dword [esp + 0x30], 1
cmp dword [esp + 0x30], 0xf
jbe 0x4163e0
mov dword [esp + 0x34], 0
jmp 0x41648f
mov eax, dword [esp + 0x34]
lea edx, [eax*4]
mov eax, dword [esp + 0x18]
add eax, edx
movzx eax, word [eax + 2]
movzx eax, ax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x38], 0
je 0x41648a
mov eax, dword [esp + 0x38]
movzx edx, al
mov eax, dword [esp + 0x38]
movzx eax, word [esp + eax*2 + 0x3c]
lea ebx, [eax + 1]
mov ecx, dword [esp + 0x38]
mov word [esp + ecx*2 + 0x3c], bx
movzx eax, ax
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004137cc
mov edx, dword [esp + 0x34]
lea ecx, [edx*4]
mov edx, dword [esp + 0x18]
add edx, ecx
mov word [edx], ax
add dword [esp + 0x34], 1
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
jle 0x416428
nop
mov eax, dword [esp + 0x5c]
sub eax, dword [0xa2c044]
je 0x4164ab
call fcn.004016b0
add esp, 0x68
pop ebx
ret
Function at 0x4186b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [0xa2c044]
mov dword [esp + 0x2c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x6af91], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af64], 0x10000
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af60], 0
mov eax, dword [esp + 0x1c]
add eax, 0x4af64
mov dword [esp + 4], 0x1fffc
mov dword [esp], eax
call fcn.004095ec
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2a4c2]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af84], edx
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2a4c0]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af88], edx
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2a4c4]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af8c], edx
mov eax, dword [esp + 0x18]
movzx eax, word [eax*8 + 0xa2a4c6]
movzx edx, ax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af80], edx
cmp dword [esp + 0x18], 2
ja 0x41879a
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
or eax, 4
mov edx, eax
mov eax, dword [esp + 0x14]
mov word [eax], dx
jmp 0x4187b4
cmp dword [esp + 0x18], 7
jbe 0x4187b4
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
or eax, 2
mov edx, eax
mov eax, dword [esp + 0x14]
mov word [eax], dx
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x1af64]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00419890
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x6af7c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af7c]
test eax, eax
je 0x41889d
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x6af90], 0
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af68], 0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af68]
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af74], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af7c]
cmp eax, 0x105
ja 0x418840
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00415828
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af6c], 0
mov dword [esp + 0x28], 0
jmp 0x418894
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x6af6c]
shl eax, 5
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add eax, edx
add eax, 0x1af64
movzx eax, byte [eax]
movzx eax, al
xor eax, ecx
and eax, 0x7fff
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x6af6c], edx
add dword [esp + 0x28], 1
cmp dword [esp + 0x28], 1
jbe 0x418858
jmp 0x41889e
nop
mov eax, dword [esp + 0x2c]
sub eax, dword [0xa2c044]
je 0x4188af
call fcn.004016b0
add esp, 0x3c
ret
Function at 0x4195f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [0xa2c044]
mov dword [esp + 0x2c], eax
xor eax, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
add eax, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
jmp 0x41970a
mov eax, dword [esp + 0x18]
add eax, 1
movzx eax, al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
lea edx, [eax*4]
mov eax, dword [esp + 0x20]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x24]
add eax, edx
movzx eax, al
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
lea edx, [eax*4]
mov eax, dword [esp + 0x20]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
lea edx, [eax*4]
mov eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
lea edx, [eax*4]
mov eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x24]
mov dword [edx], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
add eax, edx
movzx eax, byte [eax]
mov ecx, eax
mov eax, dword [esp + 0x24]
mov edx, eax
mov eax, dword [esp + 0x28]
add eax, edx
movzx eax, al
lea edx, [eax*4]
mov eax, dword [esp + 0x20]
add eax, edx
mov eax, dword [eax]
xor ecx, eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
add eax, edx
mov edx, ecx
mov byte [eax], dl
add dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 4]
jl 0x41964b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
nop
mov eax, dword [esp + 0x2c]
sub eax, dword [0xa2c044]
je 0x41973f
call fcn.004016b0
add esp, 0x3c
ret
Function at 0x41aa50
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, edx
mov byte [esp + 8], al
mov eax, dword [0xa2c044]
mov dword [esp + 0x1c], eax
xor eax, eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov edx, eax
movsx eax, byte [esp + 8]
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
shr eax, 8
xor edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
add eax, 4
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
movzx edx, al
mov eax, dword [esp + 0xc]
add eax, 4
add edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0xc]
add eax, 4
mov eax, dword [eax]
imul edx, eax, 0x8088405
mov eax, dword [esp + 0xc]
add eax, 4
add edx, 1
mov dword [eax], edx
mov eax, dword [esp + 0xc]
add eax, 8
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
add eax, 4
mov eax, dword [eax]
shr eax, 0x18
xor eax, edx
movzx eax, al
mov edx, dword [eax*4 + 0xa2a520]
mov eax, dword [esp + 0xc]
add eax, 8
mov eax, dword [eax]
shr eax, 8
mov ecx, eax
mov eax, dword [esp + 0xc]
add eax, 8
xor edx, ecx
mov dword [eax], edx
nop
mov eax, dword [esp + 0x1c]
sub eax, dword [0xa2c044]
je 0x41ab1e
call fcn.004016b0
add esp, 0x2c
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2cdf6500
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1aa952c9
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100027a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100027b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100027e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100027e4
cmp esi, eax
jae 0x100027e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100027d4
cmp esi, eax
jb 0x100027ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10002f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x100401b0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x10042498]
test eax, eax
jne 0x10002fd4
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.1000e5c0
add esp, 0xc
push str.BApi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10002f69
push 0x104
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [esp + 8], 0
jne 0x10002fbd
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x207
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.deepscan_bapi.dll
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call fcn.10001420
mov esi, eax
lea eax, [esp + 0xc]
call fcn.10002d10
mov dword [0x10042498], eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000d18f
add esp, 0x214
ret
Function at 0x100032d0
Capabilities:
Find taskbar
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x100401b0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.1000e5c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Wtsapi32.dll
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebp, ebp
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x10003344
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x1000336b
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1000336b
lea ecx, [esp + 0x10]
push ecx
push eax
call ebp
test eax, eax
jne 0x100033c8
push 0
push str.Shell_TrayWnd
call ebx
test eax, eax
jne 0x10003387
push 0x2710
inc esi
call edi
cmp esi, 0x1e
jb 0x10003350
jmp 0x100033c8
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x80000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100033c8
lea ecx, [esp + 0x10]
push ecx
push 0xb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x100033db
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp]
xor ecx, esp
call fcn.1000d18f
add esp, 0x218
ret
Function at 0x100040e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001c175
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100401b0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
push 0x10042708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0
mov eax, dword [0x10042490]
test eax, eax
jne 0x10004129
call fcn.10001420
mov dword [0x10042490], eax
cmp dword [eax + 0x11c], 0
je 0x1000414c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x1000414c
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call eax
jmp 0x1000415e
push esi
push edi
push 2
push 0
push str.ServiceDll
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10042708
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret

Function at 0x10004370
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100043de
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x100043af
cmp eax, 2
jne 0x100043ca
mov eax, dword [esp]
test esi, esi
je 0x100043d8
test eax, eax
je 0x100043d3
test al, 1
jne 0x100043ca
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x100043d8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x100043f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001c36b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c0
mov eax, dword [0x100401b0]
xor eax, esp
mov dword [esp + 0x8bc], eax
push ebp
push esi
push edi
mov eax, dword [0x100401b0]
xor eax, esp
push eax
lea eax, [esp + 0x8d0]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2be]
mov dword [esp + 0x1c], 0
push ecx
mov word [esp + 0x2c0], ax
call fcn.1000e5c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x2b8]
push edx
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2b4]
push eax
call ebp
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4c6]
push edx
mov word [esp + 0x4c8], cx
call fcn.1000e5c0
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0x4bc]
call fcn.100026c0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe.exe
lea eax, [esp + 0x4c0]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x4bc]
push ecx
call edi
test eax, eax
je 0x100044e8
push ebx
lea ecx, [esp + 0x2b8]
call fcn.10002be0
jmp 0x1000462f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xb6]
push eax
mov word [esp + 0xb8], dx
call fcn.1000e5c0
add esp, 0xc
lea eax, [esp + 0x2b4]
lea edx, [esp + 0xac]
call fcn.100026c0
push str...360Safe.exe
lea ecx, [esp + 0xb0]
push ecx
call esi
lea edx, [esp + 0xac]
push edx
call edi
test eax, eax
je 0x10004554
lea eax, [esp + 0xac]
push eax
call ebp
push ebx
lea ecx, [esp + 0xb0]
call fcn.10002be0
jmp 0x1000462f
mov edx, dword [0x1003d058]
mov ax, word [0x1003d05c]
mov ecx, 0x20
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.Path]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x28], ax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x8e8], esi
push 0x80000002
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10004619
mov ebp, dword [esp + 0x14]
push 0x206
lea ecx, [esp + 0x6ca]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov word [esp + 0x6d0], ax
call fcn.1000e5c0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x1c]
lea esi, [esp + 0x6cc]
mov dword [esp + 0x1c], 0x104
call fcn.10004370
test eax, eax
jne 0x10004617
push ebx
mov ecx, esi
call fcn.10002be0
test ebp, ebp
jmp 0x10004626
xor esi, esi
push ebx
mov ecx, 0x1003d018
call fcn.10002be0
cmp ebp, esi
je 0x1000462f
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x8d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8bc]
xor ecx, esp
call fcn.1000d18f
add esp, 0x8cc
ret
Function at 0x10006390
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x100401b0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.1000a220
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.1000a2c0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1000d18f
add esp, 0x68
ret
Function at 0x10006520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x1003d25c
push 0x80000002
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100066b1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100065b3
cmp dword [esp + 0x14], 1
jne 0x10006698
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x10006698
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x100065f8
cmp dword [esp + 0x14], 1
jne 0x10006698
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x10006698
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x1000662f
cmp dword [esp + 0x14], 1
jne 0x10006698
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x10006698
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x10006698
cmp dword [esp + 0x14], 3
jne 0x10006698
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x10006698
lea eax, [esi + 0xc]
call fcn.10006400
test eax, eax
je 0x10006698
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret