joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e680
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x46e741
mov eax, dword [esp + 0x488]
test eax, eax
je 0x46e741
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46e741
cmp dword [esp], 0x378
jne 0x46e741
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x46e741
lea edx, [esp + 4]
push edx
call fcn.0046e110
add esp, 4
test eax, eax
je 0x46e741
cmp dword [esp + 0x234], 1
jne 0x46e733
cmp dword [esp + 0x258], 2
jne 0x46e733
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x46e741
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46e741
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x46e750
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x46e7af
push esi
call fcn.0046e110
add esp, 4
test eax, eax
je 0x46e7af
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x46e7af
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x46e7af
push str.SetPara
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x46e840
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x46e874
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.0046e750
test eax, eax
jne 0x46e88d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.0046e7c0
cmp eax, 1
je 0x46ea1a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x46e8c6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x46e942
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46e9c2
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.0046e680
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x46e9d9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x46e8e2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x46e990
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.0046e330
test eax, eax
je 0x46e9c2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x46e95e
cmp dword [esp + 0x18], 1
jb 0x46e9c2
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push getpeername
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.0046e210
cmp eax, 1
je 0x46ea0b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46e9e9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x46e9c2
push ebp
mov ecx, ebx
call fcn.0046ea30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46ea1a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x46ea30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x46ea62
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.0046e7c0
test eax, eax
jne 0x46ea7f
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x46eaa6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x46eaf4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.0046e4d0
test eax, eax
jne 0x46eadd
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x46eac3
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push getpeername
mov ecx, edi
call fcn.0046e2a0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x46eb17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x47aa20
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47aac3
test eax, eax
jbe 0x47aac3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47aac3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47aa6e
xor esi, esi
jmp 0x47aa74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47aa9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047ca00
add esi, eax
push esi
mov ebx, esi
call fcn.0047ca00
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47aa80
pop ebp
test edi, edi
pop edi
jne 0x47aac3
test ebx, ebx
je 0x47aac3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004819c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47abe5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47acfd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47acfd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004937c2
mov esi, eax
test esi, esi
je 0x47acfd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47acfd
mov ecx, esi
call fcn.0047ab70
cmp edi, eax
jge 0x47acfd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47ac83
mov dword [esp + 0x34], 1
jmp 0x47acde
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47acfd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047a170
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47caa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47cb06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47cb06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47cae7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47ce90
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47cec8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x47daf0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47db39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47dfb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047db60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047dbe0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047dbe0
lea ecx, [esi + 0xc]
call fcn.00491d4d
lea ecx, [esi + 0x10]
call fcn.00491d4d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047f170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047f170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047f170
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00491dc2
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00491dc2
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x494166
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49419e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049221d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004921f5
jmp 0x4941aa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x495854
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x495896
call fcn.0049b6cc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x495896
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49588d
xor eax, eax
jmp 0x49589e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004958a4
pop edi
pop esi
pop ebx
ret 4

Function at 0x49bbfc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49bc2a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49bc48
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049bb62
jmp 0x49bc48
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49bc48
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049bb62
test edi, edi
mov eax, edi
jne 0x49bc32
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4015e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x144
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x150]
push edi
push 0x40
push eax
push 0x40aef8
push str.AddReg
push str.DefaultInstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x401619
pop edi
pop esi
add esp, 0x144
ret
push 0x8000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x401635
pop edi
pop esi
add esp, 0x144
ret
push edi
push 0x8000
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x40165d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
add esp, 0x144
ret
lea edx, [esp + 0x48]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x48]
push eax
call fcn.004016a0
add esp, 4
mov eax, esi
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.004016d0
add esp, 8
test eax, eax
jne 0x401678
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, 1
pop esi
add esp, 0x144
ret

Function at 0x401900
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.HKCR
push esi
call edi
test eax, eax
jne 0x401927
mov dword [esp + 0x1c], 0x80000000
jmp 0x401981
push str.HKCU
push esi
call edi
test eax, eax
jne 0x40193d
mov dword [esp + 0x1c], 0x80000001
jmp 0x401981
push str.HKLM
push esi
call edi
test eax, eax
jne 0x401953
mov dword [esp + 0x1c], 0x80000002
jmp 0x401981
push 0x408094
push esi
call edi
test eax, eax
jne 0x401969
mov dword [esp + 0x1c], 0x80000003
jmp 0x401981
push str.HKCC
push esi
call edi
test eax, eax
jne 0x401a42
mov dword [esp + 0x1c], 0x80000005
mov eax, dword [esp + 0x28]
push eax
call fcn.00401500
add esp, 4
dec eax
je 0x4019bd
sub eax, 0x10000
je 0x40199f
mov esi, 1
jmp 0x4019c2
mov ecx, dword [esp + 0x2c]
mov esi, 4
push ecx
call fcn.004015a0
add esp, 4
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14]
mov ebx, esi
jmp 0x4019cf
mov esi, 3
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov ebp, dword [esp + 0x24]
cmp byte [ebp], 0
je 0x401a2f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401a0b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401a42
mov edx, dword [esp + 0x10]
push ebx
push edi
push esi
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
push edi
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401a50
Capabilities:
Check os version
Set registry value

Disassembly:
sub esp, 0x98
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.00401c90
mov eax, dword [esp + 0x10]
cmp eax, 5
ja 0x401ad2
jne 0x401a8f
cmp dword [esp + 0x14], 1
jae 0x401ad2
push 0x80000001
call fcn.00401c10
add esp, 4
test eax, eax
jne 0x401b4d
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionWinTrustTrust_ProvidersSoftware_PublishingTrust_Database0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401b4d
push 0x36
push str.Beijing_Herosoft_Zongheng_Network_Technology_Co.__Ltd
push 1
push eax
push str.dkfibjjcnlplceoibcppeenjdjafgeia_nijmeailmcmklodgpophdkmfmpnbjnan
jmp 0x401b37
push 0x80000002
call fcn.00401b60
add esp, 4
test eax, eax
jne 0x401b4d
push 0x80000001
call fcn.00401b60
add esp, 4
test eax, eax
jne 0x401b4d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftSystemCertificatesTrustedPublisherCertificates1ABC2ED8FF6142BB474272BBF6CC4870E6D6CA21
push 0x80000002
call esi
test eax, eax
je 0x401b24
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftSystemCertificatesTrustedPublisherCertificates1ABC2ED8FF6142BB474272BBF6CC4870E6D6CA21
push 0x80000001
call esi
test eax, eax
jne 0x401b4d
push 0x614
push 0x4080b0
push 3
push 0
push str.Blob
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x98
ret

Function at 0x401b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
push 0x8000
push 0x40
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x18]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftSystemCertificatesTrustedPublisherCertificates1ABC2ED8FF6142BB474272BBF6CC4870E6D6CA21
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401bfd
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push edi
push eax
push esi
push str.Blob
push ecx
mov dword [esp + 0x20], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401bf2
cmp dword [esp + 8], 0x614
jne 0x401bf2
mov ecx, edi
xor eax, eax
sub ecx, 0x4080b0
push ebx
mov dl, byte [ecx + eax + 0x4080b0]
mov bl, byte [eax + 0x4080b0]
cmp dl, bl
jne 0x401be5
inc eax
cmp eax, 0x614
jl 0x401bcc
xor ecx, ecx
cmp eax, 0x614
sete cl
mov esi, ecx
pop ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x401c10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x50
lea eax, [esp]
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionWinTrustTrust_ProvidersSoftware_PublishingTrust_Database0
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c84
lea edx, [esp + 0x58]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push str.dkfibjjcnlplceoibcppeenjdjafgeia_nijmeailmcmklodgpophdkmfmpnbjnan
push edx
mov dword [esp + 0x70], 0x46
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c79
cmp dword [esp + 0x58], 0x36
jne 0x401c79
lea eax, [esp + 0xc]
push eax
push str.Beijing_Herosoft_Zongheng_Network_Technology_Co.__Ltd
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x50
ret

Function at 0x401cb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push edi
mov edi, dword [esp + 0x118]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401d28
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0x100
push ecx
push 0
push edx
call esi
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x401d20
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
test eax, eax
je 0x401ce5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00401cb0
add esp, 8
jmp 0x401ce5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push edi
push ebx
call ebp
pop edi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x401d70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
lea eax, [esp + 0x2c]
push esi
mov esi, dword [esp + 0x30]
push eax
push 0xf003f
push 0
push str.CLSID68B1C2FF_CF42_45F9_ADAC_9710F28C965DVersion
push 0x80000000
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401da2
xor eax, eax
pop esi
add esp, 0x28
ret
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.VersionInfo
push ecx
mov dword [esp + 0x20], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x401df0
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop esi
add esp, 0x28
ret
Function at 0x401e20
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0xc]
push ecx
call edi
mov cl, byte [esp + eax + 0xb]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov bl, 0x5c
cmp cl, bl
je 0x401e62
lea edx, [esp + 0xc]
push 0x408030
push edx
call esi
mov eax, dword [esp + 0x218]
lea ecx, [esp + 0xc]
push eax
push ecx
call esi
lea edx, [esp + 0xc]
push edx
call fcn.00401f90
add esp, 4
test eax, eax
jne 0x401e8c
pop edi
pop esi
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x110]
push ecx
call edi
cmp byte [esp + eax + 0x10f], bl
je 0x401ec1
lea edx, [esp + 0x110]
push 0x408030
push edx
call esi
push ebp
lea eax, [esp + 0x114]
push str.DVSHORT
push eax
call esi
lea ecx, [esp + 0x114]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00401000
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
lea ecx, [esp + 0x10]
mov ebp, eax
push ecx
call ebx
test ebp, ebp
je 0x401f74
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call edi
lea ecx, [esp + 0x10]
push str.DVSHORT.dll
push ecx
call esi
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call edi
lea ecx, [esp + 0x10]
push str.DVSHORT.inf
push ecx
call esi
lea edx, [esp + 0x10]
push edx
call fcn.004015e0
add esp, 4
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push str.DVSHORT.inf
push edx
call esi
lea eax, [esp + 0x10]
push eax
call ebx
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x208
ret