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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea ecx, [ebp - 8]
call fcn.00404190
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push str.softwareMyDriversDriverGenius
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42fea2
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], ebx
je 0x42fea2
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.AppPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 1
je 0x42fe56
cmp dword [ebp - 0x10], 2
jne 0x42fea2
push edi
lea ecx, [ebp - 8]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
shr eax, 1
inc eax
push eax
call fcn.004047c0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.AppPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42fe97
mov eax, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040e311
pop edi
push 0x613008
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00413eaa
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0x42fec4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov dword [ebp - 4], ebx
call fcn.004023e0
mov eax, dword [ebp + 8]
pop ebx
leave
ret 4

Function at 0x42feda
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea ecx, [ebp - 8]
call fcn.00404190
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push str.softwarekingsoft_antivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42ff7e
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], ebx
je 0x42ff7e
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 1
je 0x42ff32
cmp dword [ebp - 0x10], 2
jne 0x42ff7e
push edi
lea ecx, [ebp - 8]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
shr eax, 1
inc eax
push eax
call fcn.004047c0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42ff73
mov eax, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040e311
pop edi
push 0x613008
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00413eaa
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0x42ffa0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov dword [ebp - 4], ebx
call fcn.004023e0
mov eax, dword [ebp + 8]
pop ebx
leave
ret 4
Function at 0x43002c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push str.SOFTWAREkingsoft_antivirus_feedbackreport
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x430059
xor ebx, ebx
inc ebx
jmp 0x4301a8
push edi
lea ecx, [ebp - 4]
call fcn.00404190
xor ebx, ebx
mov dword [ebp - 0xc], esi
inc ebx
cmp dword [ebp - 8], esi
je 0x43019c
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.DataAndTimes
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x10], ebx
je 0x43009a
cmp dword [ebp - 0x10], 2
jne 0x43019c
lea ecx, [ebp - 4]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004047c0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push str.DataAndTimes
push dword [ebp - 8]
call esi
test eax, eax
jne 0x43019c
mov eax, dword [ebp - 0xc]
xor ecx, ecx
shr eax, 1
push 0xffffffffffffffff
mov word [edi + eax*2], cx
lea ecx, [ebp - 4]
call fcn.0040e311
lea eax, [ebp - 0x24]
push eax
call fcn.00411dca
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00404190
lea ecx, [ebp - 0x24]
call fcn.00411c89
push eax
lea ecx, [ebp - 0x24]
call fcn.00411d78
push eax
lea ecx, [ebp - 0x24]
call fcn.00411df0
push eax
lea eax, [ebp - 0x10]
push str._.4d_.2d_.2d
push eax
call fcn.0040c593
add esp, 0x14
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push 8
push eax
call fcn.00403b90
mov eax, dword [eax]
test eax, eax
je 0x4301bd
mov esi, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.004023e0
test edi, edi
jne 0x43018c
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.00403c90
lea ecx, [ebp - 0x14]
push ecx
push 0x612dc4
push dword [eax]
call fcn.00413e91
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.004023e0
cmp dword [ebp - 0x14], 3
sbb ebx, ebx
neg ebx
lea ecx, [esi - 0x10]
call fcn.004023e0
lea ecx, [ebp - 0x24]
call fcn.004115f0
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004023e0
pop edi
cmp dword [ebp - 8], 0
je 0x4301b7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret
push 0x80004005
call fcn.00401eb0
int3
Function at 0x430994
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x430a2f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x430a2f
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x430a2f
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ecx], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
test eax, eax
je 0x430a2f
push edi
push eax
call fcn.004b2ff6
mov edi, eax
pop ecx
test edi, edi
je 0x430a2e
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x430a27
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x613008
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x430a27
cmp dword [ebp - 8], esi
jbe 0x430a24
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
inc esi
push edi
call fcn.004b2fff
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x430b0d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 8], eax
cmp dword [eax + 4], esi
je 0x430bc4
cmp dword [ebp + 8], esi
je 0x430bc4
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push ecx
push ebx
lea ecx, [ebp + 0xc]
add edi, edi
push ecx
push esi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0xc], 1
jne 0x430bc2
test eax, eax
jne 0x430b61
mov word [edi + ebx - 2], ax
inc esi
jmp 0x430bc2
mov eax, dword [ebp - 4]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x430bc2
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push esi
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430bba
mov eax, dword [ebp - 4]
xor ecx, ecx
mov esi, dword [ebp + 0x10]
shr eax, 1
mov word [edi + eax*2], cx
lea eax, [esi - 1]
push eax
push edi
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
add esp, 0x10
mov word [ebx + esi*2 - 2], ax
xor esi, esi
inc esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x430ca1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.00404190
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push str.SOFTWAREMicrosoftInternet_ExplorerMAIN
push reloc.WS2_32.dll_accept
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 7
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x430db2
mov esi, ebx
mov dword [ebp + 8], ebx
cmp dword [ebp - 8], ebx
je 0x430dad
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Start_Page
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], 1
je 0x430d1a
cmp dword [ebp - 0xc], 2
jne 0x430db2
lea ecx, [ebp - 4]
call fcn.004041c0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], eax
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Start_Page
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x430d5e
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp - 0x10]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040e311
test esi, esi
je 0x430db2
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0x64
jl 0x430d9a
push 0x64
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00403b90
push eax
lea ecx, [ebp - 4]
call fcn.004048f0
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004078d0
jmp 0x430db5
mov esi, dword [ebp - 4]
jmp 0x430dc6
mov esi, dword [ebp - 4]
cmp dword [ebp - 8], 0
je 0x430dc4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
lea ecx, [esi - 0x10]
mov dword [ebp - 8], ebx
call fcn.004023e0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431eae
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431f3a
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 8], ebx
jne 0x431f32
cmp edi, 0x200000
ja 0x431f32
lea eax, [edi + 2]
push eax
call fcn.004b2ff6
pop ecx
push ebx
lea ecx, [ebp - 4]
mov dword [ebp + 8], eax
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431f32
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x431f32
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], bl
mov eax, dword [ebp - 4]
mov byte [eax + ecx + 1], bl
inc ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x432f69
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, ecx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
push 0xa
pop ecx
push dword [edx]
lea edi, [ebp - 0x2c]
push 0x14
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 0x698774
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x432fbd
push 0xa
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
add esp, 0xc
jmp 0x432fc3
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3004
leave
ret 0x10

Function at 0x432fe9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.00404190
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b2ff6
mov esi, eax
pop ecx
test esi, esi
je 0x43305a
lea eax, [ebx + ebx]
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
push dword [eax]
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00404cd0
push esi
call fcn.004b2fff
pop ecx
jmp 0x433077
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x433065
xor eax, eax
jmp 0x43306d
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00404cd0
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret 0x14
Function at 0x433131
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00404190
and dword [ebp + 8], 0
lea ecx, [ebp - 8]
call fcn.00404190
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.0040c593
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x433171
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [ebp - 8]
lea eax, [ebp + 8]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x433203
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ecx
je 0x433203
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push str.ImagePath
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x4331b7
cmp dword [ebp - 8], 2
jne 0x433203
mov ecx, edi
call fcn.004041c0
mov eax, dword [ebp - 4]
mov ecx, edi
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ImagePath
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4331fa
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040e311
lea ecx, [esi - 0x10]
call fcn.004023e0
cmp dword [ebp + 8], 0
pop esi
je 0x43321b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x433220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
push edi
or edi, 0xffffffff
call fcn.00404190
push dword [ebp + 8]
lea eax, [ebp - 8]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.0040c593
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x433259
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4332a5
mov dword [ebp - 8], 4
cmp dword [ebp - 4], eax
je 0x4332a5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x61650c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4332a5
cmp dword [ebp - 0xc], 4
cmove edi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.004023e0
cmp dword [ebp - 4], 0
pop esi
je 0x4332bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x433f3e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0xc], eax
jle 0x433f55
mov ecx, dword [ebp + 8]
xor byte [eax + ecx], 0x88
inc eax
cmp eax, dword [ebp + 0xc]
jl 0x433f4b
pop ebp
ret 8
Function at 0x43406f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00404190
push 1
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x43413f
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4341b5
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [ebp - 0x20c]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00404cd0
push 0x613008
push 1
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00403c90
push eax
call fcn.00433b44
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov bl, al
add ecx, 0xfffffff0
call fcn.004023e0
test bl, bl
je 0x434138
mov ebx, 0x613008
push ebx
call edi
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.0040c36b
mov ebx, str.All_UsersApplication_Data_
jmp 0x43418e
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00404cd0
push 0x613008
push 1
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00403c90
push eax
call fcn.00433b44
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov bl, al
add ecx, 0xfffffff0
call fcn.004023e0
test bl, bl
je 0x43419b
mov ebx, 0x613008
push ebx
call edi
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.0040c36b
mov ebx, str.KingsoftKISkich_
push ebx
call edi
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.0040c36b
push dword [esi]
call fcn.00413808
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret

Function at 0x43567f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
xor eax, eax
push esi
push esi
push 2
push esi
inc eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4356d0
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4356c8
cmp dword [ebp + 8], ebx
push 1
pop eax
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x435911
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push str.SOFTWAREkingsoftAntivirusSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00404190
mov dword [ebp + 8], ebx
cmp dword [ebp - 4], ebx
je 0x4359ba
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x435965
cmp dword [ebp - 8], 2
jne 0x4359ab
mov ecx, esi
call fcn.004041c0
mov eax, dword [ebp + 8]
mov ecx, esi
shr eax, 1
inc eax
push eax
call fcn.004047c0
mov ebx, eax
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4359a2
mov eax, dword [ebp + 8]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2], cx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040e311
cmp dword [ebp - 4], 0
je 0x4359ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4359c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 8], 7
push eax
push ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
call fcn.00435c85
pop ecx
pop ecx
test eax, eax
js 0x435ab8
cmp dword [ebp - 0xc], 0
je 0x435ab8
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push esi
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push edi
push eax
call fcn.004040f0
mov esi, str._ressrcchsuplive.svr
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.0040c36b
mov esi, dword [ebp - 0x20]
push esi
push 0xffffffffffffffff
push str.TryNo
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x20]
mov edi, eax
call fcn.00404190
push edi
lea eax, [ebp - 0x20]
push 0x612dc4
push eax
call fcn.0040c593
mov edi, dword [ebp - 0x20]
add edi, 0xfffffff0
push edi
call fcn.00404b40
add esp, 0x10
add eax, 0x10
mov ecx, edi
mov dword [ebx], eax
call fcn.004023e0
lea ecx, [esi - 0x10]
call fcn.004023e0
mov eax, dword [ebp - 8]
pop edi
pop esi
cmp eax, 8
jb 0x435b01
mov ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
cmp eax, 0x1000
jb 0x435af8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402840
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
jmp 0x435af8
push 0x616814
mov ecx, ebx
call fcn.004040f0
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x435b01
mov ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
cmp eax, 0x1000
jb 0x435af8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402840
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call fcn.004b2fe8
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret
Function at 0x435b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
lea ecx, [ebp - 8]
push edi
mov dword [ebp - 4], esi
call fcn.00404190
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x435b36
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push str.CLSID9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0Implemented_CategoriesA5F7140E_4311_4ef9_AABC_F55941B5EBE5
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 4], esi
je 0x435bbf
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x613e28
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x10], 1
je 0x435b78
cmp dword [ebp - 0x10], 2
jne 0x435bbf
lea ecx, [ebp - 8]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
shr eax, 1
inc eax
push eax
call fcn.004047c0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x613e28
push dword [ebp - 4]
call esi
test eax, eax
jne 0x435bb5
mov eax, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040e311
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0x20
je 0x435bdc
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x698774
call fcn.004040f0
lea ecx, [esi - 0x10]
jmp 0x435bfb
lea ecx, [ebp - 8]
call fcn.00435d37
mov esi, dword [ebp - 8]
add esi, 0xfffffff0
push esi
call fcn.00404b40
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.004023e0
cmp dword [ebp - 4], 0
je 0x435c0b
push dword [ebp - 4]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret