joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1467dc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax]
jne 0x1467def
cmp ecx, eax
jne 0x1467def
mov ecx, ebx
call fcn.01466d70
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
cmp esi, ecx
je 0x1467ecd
push edi
mov edx, dword [esi]
mov dword [ebp + 0xc], edx
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1467e05
sub eax, edi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x1467e30
lea esp, [esp]
movsx edi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, edi
cmp edx, eax
jne 0x1467e20
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.014a7b30
imul edx, edx, 0x41a7
imul eax, eax, 0xb14
add esp, 8
sub edx, eax
jns 0x1467e5a
add edx, 0x7fffffff
mov ecx, dword [ebx + 0x20]
mov eax, ecx
and eax, edx
cmp dword [ebx + 0x24], eax
ja 0x1467e6f
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x1467e98
cmp dword [ecx], esi
jne 0x1467e90
mov edx, dword [ebx + 4]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [ecx + eax*8 + 4], edx
jmp 0x1467ea0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1467ea0
cmp dword [ecx], esi
jne 0x1467ea0
mov edx, dword [esi]
mov dword [ecx], edx
cmp esi, dword [ebx + 4]
je 0x1467ec0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.014425e4
add esp, 4
dec dword [ebx + 8]
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jne 0x1467df8
pop edi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1483e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14aca23
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x14df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
call fcn.01442640
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1483e95
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::SourceCodeInfo_Location.0
call fcn.0147e720
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, 0x14e06e0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1484b30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14aaaa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x14df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::FileDescriptorProto.0
call fcn.0147e720
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov eax, 0x14e06e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x84], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1484fb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14aaaa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x14df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::DescriptorProto.0
call fcn.0147e720
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 8], 0x14e06e0
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1486fc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14aaaa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x14df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.0147e720
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x14e06e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1487110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14aca23
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x14df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48
call fcn.01442640
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x14871a3
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.0147e720
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x14e06e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x81c
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x814], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00450680
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x401754
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.004513b1
add esp, 0x81c
ret
push str.360ver.dll
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401738
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x14], 0
call fcn.004013f0
add esp, 0xc
cmp dword [esp + 8], 0
je 0x401738
lea edx, [esp + 0x18]
push edx
call fcn.004015d0
mov esi, eax
test esi, esi
je 0x401738
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 + 0x81c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004513b1
add esp, 0x81c
ret
Function at 0x4017e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1008
call fcn.00451f20
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x1004], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00450680
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push 0x4c5d18
push ecx
call fcn.00453304
add esp, 0xc
push 0x800
lea edx, [esp + 0xc]
push esi
push edx
call fcn.004536fe
add esp, 0xc
push 0x800
lea eax, [esp + 0xc]
push 0x4c5d20
push eax
call fcn.004536fe
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004536fe
add esp, 0xc
push 0x800
lea edx, [esp + 0xc]
push str.vL
push edx
call fcn.004536fe
add esp, 0xc
push 0x800
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004536fe
add esp, 0xc
push 0x800
lea ecx, [esp + 0xc]
push 0x4c5d70
push ecx
call fcn.004536fe
add esp, 0xc
push 0x14
push esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x401914
push 0xc8
push 0x4c5c20
push str.http:__down.360safe.com_setup.exe
call fcn.004aebab
add esp, 0xc
test eax, eax
jne 0x4018fc
call fcn.004016d0
test eax, eax
je 0x4018fc
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x401907
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]
cmp dword [ebp + 0x10], 0
je 0x401921
push 0
call fcn.00453666
mov ecx, dword [esp + 0x100c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004513b1
mov esp, ebp
pop ebp
ret

Function at 0x401940
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x4d0b80]
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 closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401993
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004513b1
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 0x401a1b
cmp dword [esp + 0xc], 0x40
jne 0x401a1b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x401a1b
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 0x401a1b
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x401a1b
cmp dword [esp + 0xc], 0xf8
jne 0x401a1b
cmp dword [esp + 0x10], 0x4550
jne 0x401a1b
cmp word [esp + 0x16], bx
je 0x401a1b
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.004513b1
mov esp, ebp
pop ebp
ret
Function at 0x401c40
Capabilities:
Check http status code

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
mov dword [esp + 8], 3
mov dword [esp + 4], esi
mov dword [esp + 0xc], 4
test edi, edi
je 0x401ccf
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esp + 0xc]
mov ecx, eax
dec eax
mov dword [esp + 0xc], eax
test ecx, ecx
jle 0x401cce
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
jne 0x401c96
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401c65
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x20000013
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 4
call ebx
mov esi, eax
test esi, esi
je 0x401c89
cmp dword [esp + 8], 0xc8
je 0x401cce
xor esi, esi
jmp 0x401c65
pop ebx
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x402170
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
sub esp, 0x838
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push esi
push edi
lea eax, [esp + 0x220]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360ini.cab
lea ecx, [esp + 0x224]
push ecx
call edi
lea edx, [esp + 0x220]
push edx
call fcn.00402130
add esp, 4
test eax, eax
jne 0x4021e5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.004513b1
add esp, 0x838
ret
lea eax, [esp + 0x18]
push eax
push 0x104
call esi
lea esi, [esp + 0x630]
call fcn.00401ae0
mov ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
call edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40223c
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004024e0
mov eax, dword [eax]
push eax
push 0
mov ebx, 1
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov byte [esp + 0x13], bl
test eax, eax
jne 0x402241
mov byte [esp + 0x13], 0
test bl, 1
je 0x402266
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402266
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
jne 0x4021cb
lea ecx, [esp + 0x18]
push ecx
push 0x401b90
push 0
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov esi, eax
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4021cb
push str.360ini.dll
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x430]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4021cb
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4021cb
lea esi, [esp + 0x428]
call fcn.004032a0
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004513b1
add esp, 0x838
ret
Function at 0x402300
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6126
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
mov eax, dword [0x4d0b80]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, 1
test byte [0x4d55c0], bl
jne 0x40238e
or dword [0x4d55c0], ebx
xor eax, eax
mov dword [esp + 0x20], 0
mov ecx, 0x4d55a8
mov dword [0x4d55a8], eax
mov dword [0x4d55ac], eax
mov dword [0x4d55b0], eax
mov dword [0x4d55b4], eax
mov dword [0x4d55b8], eax
mov dword [0x4d55bc], eax
call fcn.004030f0
test eax, eax
jge 0x402379
push eax
call fcn.00403180
push 0x4b6410
call fcn.00451d3d
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov eax, 2
test byte [0x4d55c0], al
jne 0x4023b8
or dword [0x4d55c0], eax
push 0x4b63f0
mov dword [0x4d559c], 0
call fcn.00451d3d
add esp, 4
push 0x4d55a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4d55a4], 0
jne 0x402424
cmp dword [0x4d559c], 0
jne 0x402424
push str.EFE12143_20B3_40AC_9981_711D112CCBCA
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x4d559c], eax
test eax, eax
jne 0x402424
push str.EFE12143_20B3_40AC_9981_711D112CCBCA
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4d559c], eax
test eax, eax
jne 0x402424
push 0x4d55a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4d55a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4d559c]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x14], 0x4d559c
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x10], bl
mov dword [esp + 0x20], ebx
cmp dword [0x4d55a4], 0
jne 0x402484
call fcn.00402170
mov dword [0x4d55a4], eax
test eax, eax
jne 0x402484
mov ecx, dword [0x4d559c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4d559c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
mov ecx, dword [0x4d55a4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402e80
lea ebx, [ebx]
cmp esi, eax
jae 0x402e84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402e70
cmp esi, eax
jb 0x402e8a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4036f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4d0b80]
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.00409020
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004090c0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004513b1
add esp, 0x68
ret

Function at 0x403760
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4d0b80]
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.00409020
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004090c0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004513b1
add esp, 0x68
ret
Function at 0x4038d0
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 str.SOFTWARE360MachineSignature
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a61
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 0x403963
cmp dword [esp + 0x14], 1
jne 0x403a48
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x403a48
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 0x4039a8
cmp dword [esp + 0x14], 1
jne 0x403a48
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x403a48
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 0x4039df
cmp dword [esp + 0x14], 1
jne 0x403a48
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x403a48
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 0x403a48
cmp dword [esp + 0x14], 3
jne 0x403a48
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x403a48
lea eax, [esi + 0xc]
call fcn.004037d0
test eax, eax
je 0x403a48
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