joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bca4
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041f6d0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41bcbf
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41bccc
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41bda8
movzx eax, word [esi]
test ax, ax
je 0x41bda8
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x41bd17
test ebp, ebp
je 0x41bd23
test ebx, ebx
jne 0x41bd23
test ecx, ecx
je 0x41bd0e
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x41bd47
cmp di, 0xd
je 0x41bd5c
cmp di, 0xa
je 0x41bd5f
mov eax, dword [esp + 0x201c]
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x202c]
mov dword [esp + 0x201c], eax
lea eax, [edi - 2]
cmp dword [esp + 0x10], eax
jge 0x41bd57
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x41bcf6
jmp 0x41bd5f
mov byte [edx], 1
jmp 0x41bd66
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x41bda2
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x41bda2
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004116b8
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41bdaa
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x41e2e3
Capabilities:
Hide graphical window

Disassembly:
and dword [0x452818], 0
push 1
push dword [esp + 8]
mov byte [0x44b400], 1
mov byte [0x44b401], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401163
cmp dword [0x462c64], 0
jne 0x41e323
cmp byte [0x44b406], 0
je 0x41e32c
cmp dword [0x44b3fc], 0
jne 0x41e33f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41e43b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041f6d0
cmp byte [0x454828], 0
je 0x41e4ca
cmp word [0x45482a], 0
je 0x41e4ca
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x45482a
call fcn.0041cfd4
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41e4c9
push dword [ebp + 8]
call fcn.004247b5
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x41e4ce
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041f6d0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00411427
mov esi, eax
test esi, esi
je 0x41e526
movzx ecx, word [esi]
push ecx
jmp 0x41e511
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00411543
test al, al
jne 0x41e50a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x42023c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42027b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42027b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42027b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42027b
cmp dword [ecx + 0x74], 0xe
jbe 0x42027b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42dd93
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42de30
push ebx
push esi
call fcn.0042dd5c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042dca5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42dddd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42de2f
push edi
push eax
call fcn.0042b1bd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42ddfd
call fcn.0042b06a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42de2e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042dca5
add esp, 0x20
test eax, eax
jne 0x42de1c
push edi
call fcn.0042b06a
jmp 0x42de24
push ebx
call fcn.0042b06a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42e09b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a4a0
push 0x43a498
push str.FlsAlloc
push 0x1e
call fcn.0042dfb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e0cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x43626c]
call esi
jmp 0x42e0d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42e119
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a4b0
push 0x43a4a8
push str.FlsGetValue
push 0x20
call fcn.0042dfb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e150
push dword [ebp + 8]
mov ecx, esi
call dword [0x43626c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x434f60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x434f8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x434f8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 2
jge 0x401011
push 0xffffffffffffffff
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00401030
add esp, 4
push 0
call dword [sym.imp.MSVCR80.dll_exit]
pop ebp
ret

Function at 0x401030
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 0x15], al
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x15], 0
jne 0x401045
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
add eax, 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x4010c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x40171e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401735
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x40176a
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401766
cmp edi, eax
jae 0x40176a
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401758
cmp edi, eax
jb 0x40176e
xor eax, eax
jmp 0x401778
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401b65
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x88], vtable.KMD5.0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x4e090c
mov eax, dword [0x4df4b4]
mov edi, 0x4df4b4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00487f4a
test eax, eax
je 0x401d18
mov ebx, dword [ebp - 4]
cmp dword [ebx - 0xc], 0
je 0x401d2b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d2b
push 0x5c
lea esi, [ebp - 4]
call fcn.00401d46
cmp eax, 0xffffffff
je 0x401d2b
mov ecx, dword [ebx - 0xc]
lea edx, [eax + 1]
lea eax, [ebp - 0x14]
push eax
sub ecx, edx
mov eax, esi
call fcn.004021b9
mov eax, dword [0x4df4b4]
mov ecx, edi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.00401f87
test al, al
jne 0x401c2f
push esi
lea eax, [ebp - 4]
call fcn.00401d64
lea eax, [esi - 0x10]
call fcn.0040151c
push dword [ebp - 4]
lea esi, [ebp - 0x18c]
call fcn.00402074
push dword [eax]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
push eax
call fcn.00401ac9
lea eax, [ebp - 0x188]
cmp dword [ebp - 0x18c], eax
je 0x401c6d
push dword [ebp - 0x18c]
call fcn.0048b5bf
pop ecx
mov byte [ebp - 0x28], 0
xor eax, eax
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea edi, [ebp - 0x88]
call fcn.004449b7
test eax, eax
je 0x401d20
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0048b650
mov eax, dword [0x4df4b4]
add esp, 0xc
mov ecx, 0x4df4b4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
xor esi, esi
movzx eax, byte [ebp + esi - 0x28]
push eax
push str._02X
lea ecx, [ebp - 8]
call fcn.00401dca
inc esi
cmp esi, 0x10
pop ecx
pop ecx
jl 0x401cb5
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x401ce4
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00402033
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [ebx - 0x10]
call fcn.0040151c
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0x4e0918
jl 0x401b96
jmp 0x401d33
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x401d2e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [ebx - 0x10]
call fcn.0040151c
lea ecx, [ebp - 0x88]
call fcn.0044498d
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40228f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40231d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4022c6
cmp dword [ebp - 8], 2
jne 0x40231c
push esi
mov esi, dword [ebp + 0xc]
call fcn.004015cc
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00401842
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x40231b
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40230d
push eax
call fcn.0048b241
pop ecx
mov edx, esi
call fcn.0040160c
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x402324
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0048af40
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x40237d
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x40242b
mov eax, dword [ebp - 0x94]
dec eax
je 0x402417
dec eax
jne 0x40242b
cmp dword [ebp - 0xa0], 6
jne 0x4023c8
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x4023b0
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x4023c4
cmp dword [ebp - 0x9c], edi
jne 0x402404
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x40242b
cmp dword [ebp - 0xa0], 5
jne 0x4023f7
cmp dword [ebp - 0x9c], 2
jne 0x4023de
push 5
jmp 0x402414
cmp dword [ebp - 0x9c], 1
jne 0x4023eb
push 6
jmp 0x402414
cmp dword [ebp - 0x9c], edi
jne 0x40242b
push 3
jmp 0x402414
cmp dword [ebp - 0xa0], 4
ja 0x40242b
push 4
jmp 0x402414
cmp dword [ebp - 0x9c], 2
jne 0x40242b
cmp byte [ebp + 0x76], al
jne 0x40242b
push 0xa
pop edi
jmp 0x40242b
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x402503
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
mov eax, dword [0x4df4b4]
mov esi, 0x4df4b4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.004016a0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401ac9
cmp dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
jle 0x402639
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
lea edi, [eax + ecx*4]
mov eax, dword [edi]
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x4025ab
cmp cx, 0x2d
je 0x4025ab
push eax
lea eax, [ebp - 0xc]
call fcn.00401965
lea eax, [ebp - 0xc]
push eax
lea edi, [ebp - 0x24]
call fcn.00405453
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x40262a
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004056cf
mov eax, dword [edi]
inc eax
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401ac9
push 0x3d
xor ecx, ecx
lea esi, [ebp - 0x2c]
call fcn.00411dca
mov esi, eax
cmp esi, 0xffffffff
je 0x40261f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x10]
sub ecx, esi
push eax
dec ecx
lea eax, [ebp - 0x2c]
call fcn.004052d2
lea edi, [ebp - 0x28]
call fcn.00402033
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
call fcn.00401a3f
lea edi, [ebp - 0x2c]
call fcn.00402033
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040151c
lea ebx, [ebp - 0x24]
call fcn.004054ae
mov ebx, dword [ebp + 8]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jl 0x40256f
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004056cf
lea edi, [ebp - 0x2c]
call fcn.0040277e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x403046
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
inc ebx
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x403082
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x403082
mov ecx, edi
mov dword [edi + 0x388], ebx
call fcn.00402fbe
mov esi, dword [ebp + 0x18]
mov dword [esi], eax
cmp dword [edi + 0x388], 0
je 0x403085
mov eax, ebx
jmp 0x4030cc
mov esi, dword [ebp + 0x18]
push 0
push esi
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043f1a2
test eax, eax
jne 0x40307e
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x4030d3
push 5
push dword [edi + 4]
lea eax, [edi + 0x388]
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40307e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 0x403
jne 0x40310d
mov eax, dword [edi + 0x390]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x388], ebx
mov dword [edi + 0x378], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [esi], 0
cmp dword [edi + 0x388], 0
jmp 0x4030c8
cmp eax, 0x465
jne 0x403149
xor eax, eax
lea esi, [edi + 0x2c]
push eax
mov dword [edi + 0x388], ebx
call fcn.0040c83c
mov eax, dword [edi + 0x30]
add esi, 0x2a0
push 5
lea ecx, [edi + 0x3bc]
mov dword [edi + 0x3f4], esi
call fcn.0045d2c8
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x403104
cmp eax, 0x110
jne 0x4030ca
lea eax, [edi + 0x388]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.00402a7e
mov dword [esi], eax
jmp 0x4030c2

Function at 0x403648
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push edi
push dword [ebp + 0xc]
lea ebx, [ebp - 4]
push dword [ebp + 8]
call fcn.004036bb
xor edi, edi
cmp dword [esi], edi
pop ecx
pop ecx
je 0x4036a2
mov eax, esi
push dword [eax]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0041e02e
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040151c
test bl, bl
jne 0x4036a9
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x40366c
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x403c9a
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4df4b4]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x4df4b4
mov dword [ebp - 4], edi
call dword [eax + 0xc]
push 1
mov ebx, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
add ebx, 0x10
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.00402241
test eax, eax
je 0x403cec
lea eax, [ebp - 8]
push eax
push str.KAV7NEEDREBOOT
mov ebx, esi
call fcn.0040228f
test eax, eax
mov ebx, dword [ebp - 8]
je 0x403cec
inc edi
lea eax, [ebx - 0x10]
call fcn.0040151c
cmp dword [ebp - 4], 0
je 0x403d03
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404faa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x4e]
push edi
push eax
mov word [ebp - 0x50], di
call fcn.0048af40
add esp, 0xc
push str.SOFTWAREKingsoftAntivirusSetup
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CKANRegisterKey.0
mov dword [ebp - 8], edi
call fcn.00444051
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004440d9
mov eax, dword [0x4df4b4]
mov ecx, 0x4df4b4
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], eax
mov eax, 0x4ba7ec
mov ecx, str.coverinstall
jne 0x405010
mov ecx, eax
cmp dword [ebp + 8], edi
je 0x40501a
mov eax, 0x4bb564
push ecx
push eax
lea eax, [ebp - 4]
push 0x4bb574
push eax
call fcn.0041e01b
mov ebx, dword [ebp - 4]
add esp, 0x10
push ebx
push str.installparam
lea esi, [ebp - 0xc]
call fcn.00444098
lea eax, [ebp - 0x50]
push eax
call fcn.0048ca60
cmp eax, 0x5e
pop ecx
jne 0x405070
cmp dword [ebp - 8], edi
mov dword [ebp + 0xc], 1
je 0x405070
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push str.LockNavigationBar
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebx - 0x10]
call fcn.0040151c
lea ecx, [ebp - 0xc]
call fcn.00444034
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405511
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
mov eax, dword [0x4e03c8]
push ebx
push ebp
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x40552b
mov ebx, dword [eax + 4]
jmp 0x40552d
xor ebx, ebx
cmp ebx, edi
jne 0x40553d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x405562
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x405562
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405562
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x10], 1
push dword [esp + 0x1c]
mov eax, esi
push ebx
mov dword [esi + 0x334], edi
call fcn.00405cfa
cmp eax, edi
mov dword [esp + 0xc], eax
jne 0x40558c
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405694
mov edx, eax
call fcn.0040af05
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
jne 0x4055a8
lea eax, [esi + 4]
push eax
mov eax, ebx
call fcn.0040adb8
cmp dword [esi + 0x324], edi
je 0x40563b
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x1c]
je 0x405600
push 1
push ebp
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x1c]
je 0x40561c
push edi
push ebp
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x40563b
push edi
push edi
push 0xf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
call fcn.00405e88
push 0x97
push edi
lea ebp, [esi + 4]
push ebp
mov dword [esi + 0x334], edi
call fcn.0041dffe
cmp dword [esp + 0x10], edi
je 0x40567c
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x40567c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x40567c
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x14]
call fcn.0040af05
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x338]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4