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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x421a74
pop dword [ebp - 0x30]
mov eax, 0x421a74
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x5029c
push 0
mov eax, 0x515fea2f
add eax, 0xaee4c881
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x2c19d48b
sub ecx, 0x2c198c81
xor esi, esi
add esi, eax
mov edx, 0x488e00
add edx, dword [ebp - 0x30]
mov ebx, 0x83030ef6
sub ebx, 0xe769e72
mov dword [ebp - 8], 0x13b3eeec
mov edi, dword [edx]
add dword [ebp - 8], 0x138dc67d
sub edi, ebx
mov dword [ebp - 0x20], 0x90cc60d1
mov dword [esi], edi
xor dword [ebp - 0x20], 0x158c826c
add esi, 0x6fcd31e2
sub esi, 0x6fcd31de
add edx, 0xed6348b7
sub edx, 0xed6348b3
loop 0x421aca
add eax, 0x36231a71
sub eax, 0x36220776
mov ebx, eax
add eax, 0xd3f849f7
sub eax, 0xd3f849f2
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40596d
pop dword [ebp - 0x20]
mov eax, 0xdedb8895
sub eax, 0xde9b2f28
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xc059b7c1
add dword [ebp - 0x30], 0x8df88d8a
mov dword [ebp - 0x2c], 0xcbb0d285
sub dword [ebp - 0x2c], 0x997d8640
mov dword [ebp - 0x28], 0x56b42989
add dword [ebp - 0x28], 0xf5981aa5
mov dword [ebp - 0x24], 0xbf811f37
add dword [ebp - 0x24], 0x407ee0c9
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x13c1615
add dword [ebp - 0x30], 0x73365341
mov dword [ebp - 0x2c], 0xfa6e8ccc
add dword [ebp - 0x2c], 0x46fdd4a9
mov dword [ebp - 0x28], 0x1a6231ea
sub dword [ebp - 0x28], 0xb6f2c57e
mov dword [ebp - 0x24], 0xec3f90d9
sub dword [ebp - 0x24], 0xec3f90d9
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3a92b
push 0
call eax
mov ecx, 0x230050fc
sub ecx, 0x22fff98f
mov esi, eax
mov edi, 0xc7d75c03
add edi, 0x3869a3fd
add edi, dword [ebp - 0x20]
mov ebx, 0x61e66cbc
add ebx, 0xb6aec459
add dword [ebp - 0x10], 0xe799ac19
mov edx, dword [edi]
sub dword [ebp - 0x18], 0xc5252a4f
sub edx, ebx
sub dword [ebp - 0x14], 0x5d06c2b6
mov dword [esi], edx
xor dword [ebp - 0x10], eax
add esi, 0x13449c45
add esi, 0xecbb63bf
add edi, 4
loop 0x405a85
add eax, 0x3ca0eba5
sub eax, 0x3c9f9b1e
xor ebx, ebx
add ebx, eax
add eax, 0x746200a6
add eax, 0x8b9dff5f
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x412b40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 1
call dword [0x4166ec]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x413460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00413e00
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x40174d
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 0x401764
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x401799
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401795
cmp edi, eax
jae 0x401799
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401787
cmp edi, eax
jb 0x40179d
xor eax, eax
jmp 0x4017a7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401b82
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x94], vtable.KMD5.0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov eax, dword [0x4de4b4]
mov edi, 0x4de4b4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov eax, esi
call fcn.00487a81
test eax, eax
je 0x401d3b
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
je 0x401d4e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d4e
push 0x5c
lea esi, [ebp - 8]
call fcn.00401d6b
cmp eax, 0xffffffff
je 0x401d4e
mov ecx, dword [ebx - 0xc]
lea edx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
sub ecx, edx
mov eax, esi
call fcn.004021d3
mov eax, dword [0x4de4b4]
mov ecx, edi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 8]
push eax
call fcn.00401fa1
test al, al
jne 0x401c52
push esi
lea eax, [ebp - 8]
call fcn.00401d89
lea eax, [esi - 0x10]
call fcn.0040151c
push dword [ebp - 8]
lea esi, [ebp - 0x198]
call fcn.0040208e
push dword [eax]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call fcn.00401af8
lea eax, [ebp - 0x194]
cmp dword [ebp - 0x198], eax
je 0x401c90
push dword [ebp - 0x198]
call fcn.0048b25e
pop ecx
mov byte [ebp - 0x30], 0
xor eax, eax
lea edi, [ebp - 0x2f]
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 - 0x94]
call fcn.004443ae
test eax, eax
je 0x401d43
push 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0048b2f0
mov eax, dword [0x4de4b4]
add esp, 0xc
mov ecx, 0x4de4b4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
xor esi, esi
movzx eax, byte [ebp + esi - 0x30]
push eax
push str._02X
lea ecx, [ebp - 0xc]
call fcn.00401def
inc esi
cmp esi, 0x10
pop ecx
pop ecx
jl 0x401cd8
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], 0
je 0x401d07
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0040204d
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [ebx - 0x10]
call fcn.0040151c
inc dword [ebp - 0x14]
add dword [ebp - 0x10], 4
cmp dword [ebp - 0x14], 3
jl 0x401bb7
jmp 0x401d56
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
jmp 0x401d51
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [ebx - 0x10]
call fcn.0040151c
lea ecx, [ebp - 0x94]
call fcn.00444384
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x4022a9
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 0x402337
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 0x4022e0
cmp dword [ebp - 8], 2
jne 0x402336
push esi
mov esi, dword [ebp + 0xc]
call fcn.004015cc
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00401871
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 0x402335
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 0x402327
push eax
call fcn.0048ab31
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 0x40233e
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.0048a830
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 0x402397
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x402445
mov eax, dword [ebp - 0x94]
dec eax
je 0x402431
dec eax
jne 0x402445
cmp dword [ebp - 0xa0], 6
jne 0x4023e2
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x4023ca
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x4023de
cmp dword [ebp - 0x9c], edi
jne 0x40241e
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x402445
cmp dword [ebp - 0xa0], 5
jne 0x402411
cmp dword [ebp - 0x9c], 2
jne 0x4023f8
push 5
jmp 0x40242e
cmp dword [ebp - 0x9c], 1
jne 0x402405
push 6
jmp 0x40242e
cmp dword [ebp - 0x9c], edi
jne 0x402445
push 3
jmp 0x40242e
cmp dword [ebp - 0xa0], 4
ja 0x402445
push 4
jmp 0x40242e
cmp dword [ebp - 0x9c], 2
jne 0x402445
cmp byte [ebp + 0x76], al
jne 0x402445
push 0xa
pop edi
jmp 0x402445
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 0x40251d
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 [0x4de4b4]
mov esi, 0x4de4b4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.004016ab
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.00401af8
cmp dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
jle 0x402653
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 0x4025c5
cmp cx, 0x2d
je 0x4025c5
push eax
lea eax, [ebp - 0xc]
call fcn.00401994
lea eax, [ebp - 0xc]
push eax
lea edi, [ebp - 0x24]
call fcn.00405458
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x402644
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004056d4
mov eax, dword [edi]
inc eax
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401af8
push 0x3d
xor ecx, ecx
lea esi, [ebp - 0x2c]
call fcn.00411e5f
mov esi, eax
cmp esi, 0xffffffff
je 0x402639
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.004052d7
lea edi, [ebp - 0x28]
call fcn.0040204d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
call fcn.00401a6e
lea edi, [ebp - 0x2c]
call fcn.0040204d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040151c
lea ebx, [ebp - 0x24]
call fcn.004054b3
mov ebx, dword [ebp + 8]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jl 0x402589
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004056d4
lea edi, [ebp - 0x2c]
call fcn.00402798
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x403060
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 0x40309c
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40309c
mov ecx, edi
mov dword [edi + 0x388], ebx
call fcn.00402fd8
mov esi, dword [ebp + 0x18]
mov dword [esi], eax
cmp dword [edi + 0x388], 0
je 0x40309f
mov eax, ebx
jmp 0x4030e6
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.0044b03f
test eax, eax
jne 0x403098
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x4030ed
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 0x403098
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 0x403
jne 0x403127
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 0x4030e2
cmp eax, 0x465
jne 0x403163
xor eax, eax
lea esi, [edi + 0x2c]
push eax
mov dword [edi + 0x388], ebx
call fcn.0040c8d8
mov eax, dword [edi + 0x30]
add esi, 0x2a0
push 5
lea ecx, [edi + 0x3bc]
mov dword [edi + 0x3f4], esi
call fcn.0045d0fa
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x40311e
cmp eax, 0x110
jne 0x4030e4
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.00402a98
mov dword [esi], eax
jmp 0x4030dc

Function at 0x403662
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.004036d5
xor edi, edi
cmp dword [esi], edi
pop ecx
pop ecx
je 0x4036bc
mov eax, esi
push dword [eax]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0041e0dd
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 0x4036c3
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x403686
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 0x403cb4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4de4b4]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x4de4b4
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.0040225b
test eax, eax
je 0x403d06
lea eax, [ebp - 8]
push eax
push str.KAV7NEEDREBOOT
mov ebx, esi
call fcn.004022a9
test eax, eax
mov ebx, dword [ebp - 8]
je 0x403d06
inc edi
lea eax, [ebx - 0x10]
call fcn.0040151c
cmp dword [ebp - 4], 0
je 0x403d1d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404faf
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.0048a830
add esp, 0xc
push str.SOFTWAREKingsoftAntivirusSetup
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CKANRegisterKey.0
mov dword [ebp - 8], edi
call fcn.00443a17
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00443a9f
mov eax, dword [0x4de4b4]
mov ecx, 0x4de4b4
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], eax
mov eax, 0x4be818
mov ecx, str.coverinstall
jne 0x405015
mov ecx, eax
cmp dword [ebp + 8], edi
je 0x40501f
mov eax, 0x4ba55c
push ecx
push eax
lea eax, [ebp - 4]
push 0x4ba56c
push eax
call fcn.0041e0ca
mov ebx, dword [ebp - 4]
add esp, 0x10
push ebx
push str.installparam
lea esi, [ebp - 0xc]
call fcn.00443a5e
lea eax, [ebp - 0x50]
push eax
call fcn.0048be2a
cmp eax, 0x5e
pop ecx
jne 0x405075
cmp dword [ebp - 8], edi
mov dword [ebp + 0xc], 1
je 0x405075
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.004439fa
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405516
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
mov eax, dword [0x4df3c8]
push ebx
push ebp
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x405530
mov ebx, dword [eax + 4]
jmp 0x405532
xor ebx, ebx
cmp ebx, edi
jne 0x405542
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x405567
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x405567
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405567
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.00405d1c
cmp eax, edi
mov dword [esp + 0xc], eax
jne 0x405591
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405699
mov edx, eax
call fcn.0040afa1
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
jne 0x4055ad
lea eax, [esi + 4]
push eax
mov eax, ebx
call fcn.0040ae54
cmp dword [esi + 0x324], edi
je 0x405640
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 0x405605
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 0x405621
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 0x405640
push edi
push edi
push 0xf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
call fcn.00405ea2
push 0x97
push edi
lea ebp, [esi + 4]
push ebp
mov dword [esi + 0x334], edi
call fcn.0041e0ad
cmp dword [esp + 0x10], edi
je 0x405681
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x405681
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x405681
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x14]
call fcn.0040afa1
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
Function at 0x405750
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x4df3c8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x40576d
mov esi, dword [eax + 4]
jmp 0x40576f
xor esi, esi
cmp esi, ebp
jne 0x40577f
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x4057a4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4057a4
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4057a4
push ebp
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [edi + 0x378], ebp
push esi
mov ebx, edi
mov dword [eax], ebp
call fcn.00405fe6
mov ebx, eax
cmp ebx, ebp
jne 0x4057cd
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4058a9
mov edx, ebx
call fcn.0040afa1
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040ae54
cmp dword [edi + 0x36c], ebp
je 0x405857
push ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebp
push ebp
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push ebp
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x40583a
push 1
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x405857
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00457f2d
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e0ad
cmp dword [esp + 0x1c], ebp
je 0x405895
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x405895
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x405895
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040afa1
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret