joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007c760
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100dec00]
mov ecx, dword [0x100de718]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1007c78b
mov ecx, 0x100debf8
pop ebp
jmp fcn.10042230
push 0x100dec00
call fcn.10099cc7
add esp, 4
cmp dword [0x100dec00], 0xffffffff
jne 0x1007c780
mov dword [0x100debfc], 0
mov dword [0x100debf8], 0
mov ecx, 0x100debf8
push 0
call fcn.100422a0
push 0x100dec00
call fcn.10099d3d
add esp, 4
jmp 0x1007c780

Function at 0x10081c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x100db010]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x10081ce8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x10081ce8
cmp dword [ebp - 0x14], 4
jne 0x10081ce8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10099c81
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x10081d00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.1009a0d0
mov eax, dword [ebp + 8]
mov edx, dword [0x100db010]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea edx, [ebp - 0x1018]
lea ebx, [ebp - 0x810]
lea esi, [ebp - 0x1014]
push edx
push ebx
push esi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x10081dad
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x10081d75
mov esi, 0x3f4
cmp eax, 1
jne 0x10081dad
mov ecx, edi
push ebx
jmp 0x10081da6
lea eax, [ebp - 0x1010]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xffffffff
mov esi, 0xea
cmp eax, 0x3ff
ja 0x10081dad
mov ecx, edi
lea eax, [ebp - 0x1010]
push eax
call fcn.10038d36
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10099c81
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x100865f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x100decb8]
mov ecx, dword [0x100de718]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10086665
mov ecx, 0x100decb0
call fcn.10042230
test eax, eax
jne 0x10086658
mov edi, esp
push 4
call fcn.10099c14
add esp, 4
mov esi, eax
mov dword [eax], 0
mov ecx, 0x100decb0
call fcn.10042230
test eax, eax
je 0x1008664b
push eax
call fcn.10099c44
add esp, 4
mov ecx, 0x100decb0
push esi
call fcn.10042260
mov esp, edi
mov ecx, 0x100decb0
pop esi
pop edi
pop ebp
jmp fcn.10042230
push 0x100decb8
call fcn.10099cc7
add esp, 4
cmp dword [0x100decb8], 0xffffffff
jne 0x10086612
mov dword [0x100decb4], 0
mov dword [0x100decb0], 0
mov ecx, 0x100decb0
push 0x10001480
call fcn.100422a0
push 0x100decb8
call fcn.10099d3d
add esp, 4
jmp 0x10086612

Function at 0x100884a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x10088519
mov ecx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x100884bc
xor esi, esi
jmp 0x100884fe
and ebx, 0xfffffffe
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edi, al
movzx edx, byte [ecx + esi]
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x100ca714]
movzx edx, al
movzx edi, byte [ecx + esi + 1]
xor edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x100ca714]
add esi, 2
cmp ebx, esi
jne 0x100884d0
mov edx, dword [ebp + 0x10]
test dl, 1
je 0x10088519
movzx edx, al
movzx ecx, byte [ecx + esi]
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x100ca714]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1008a3a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x100db010]
xor ecx, ebp
mov dword [ebp - 8], ecx
cmp eax, 3
jne 0x1008a45e
mov dword [ebp - 0x14], 0x1008a480
lea eax, [ebp - 0x14]
push 0
push eax
push 0x1008a380
push 0x100ded24
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1008a470
cmp dword [0x100ded28], 0
jne 0x1008a45e
push dword [0x100ded2c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1008a45e
mov esi, eax
push 0x100ded30
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x100ded3c]
mov dword [ebp - 0xc], eax
movsd xmm0, qword [0x100ded34]
movsd qword [ebp - 0x14], xmm0
push 0x100ded30
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1008a437
push dword [esi]
call eax
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1008a446
push dword [esi + 4]
call eax
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1008a455
push dword [esi + 8]
call eax
add esp, 4
push esi
call fcn.1008d7b0
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10099c81
add esp, 0x10
pop esi
pop ebp
ret 0xc
call fcn.100a8d87
int3
Function at 0x100b6405
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b664e

Function at 0x100b9015
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b9020
Function at 0x401760
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 0x401777
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x4017ac
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4017a8
cmp edi, eax
jae 0x4017ac
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40179a
cmp edi, eax
jb 0x4017b0
xor eax, eax
jmp 0x4017ba
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401b98
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 edi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x52a89c
mov eax, dword [0x5289f4]
mov ecx, 0x5289f4
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, edi
call fcn.0048a760
test eax, eax
je 0x401d26
mov ebx, dword [ebp - 4]
cmp dword [ebx - 0xc], 0
je 0x401d39
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d39
push 0x5c
lea esi, [ebp - 4]
call fcn.00401d80
cmp eax, 0xffffffff
je 0x401d39
mov ecx, dword [ebx - 0xc]
lea edx, [eax + 1]
lea eax, [ebp - 0x14]
push eax
sub ecx, edx
mov eax, esi
call fcn.0040220a
mov esi, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0xc]
call fcn.00401d54
lea eax, [esi - 0x10]
call fcn.0040151c
push dword [ebp - 0xc]
lea esi, [ebp - 0x18c]
call fcn.004020c5
push dword [eax]
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call fcn.00401b57
lea eax, [ebp - 0x188]
cmp dword [ebp - 0x18c], eax
je 0x401c7e
push dword [ebp - 0x18c]
call fcn.00497b0f
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.004463f1
test eax, eax
je 0x401d2e
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00497ba0
mov eax, dword [0x5289f4]
add esp, 0xc
mov ecx, 0x5289f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
xor esi, esi
movzx eax, byte [ebp + esi - 0x28]
push eax
push 0x4f983c
lea ecx, [ebp - 4]
call fcn.00401e04
inc esi
cmp esi, 0x10
pop ecx
pop ecx
jl 0x401cc6
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x401cf5
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00402073
mov edi, dword [ebp - 0x10]
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [ebx - 0x10]
call fcn.0040151c
add dword [ebp - 8], 4
cmp dword [ebp - 8], 0x52a8a8
jl 0x401bc8
jmp 0x401d41
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x401d3c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [ebx - 0x10]
call fcn.0040151c
lea ecx, [ebp - 0x88]
call fcn.004463c7
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4022cf
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 0x40235d
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 0x402306
cmp dword [ebp - 8], 2
jne 0x40235c
push esi
mov esi, dword [ebp + 0xc]
call fcn.004015cc
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004018a2
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 0x40235b
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 0x40234d
push eax
call fcn.00497791
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 0x402364
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.00497490
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 0x4023bd
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x40246b
mov eax, dword [ebp - 0x94]
dec eax
je 0x402457
dec eax
jne 0x40246b
cmp dword [ebp - 0xa0], 6
jne 0x402408
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x4023f0
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x402404
cmp dword [ebp - 0x9c], edi
jne 0x402444
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x40246b
cmp dword [ebp - 0xa0], 5
jne 0x402437
cmp dword [ebp - 0x9c], 2
jne 0x40241e
push 5
jmp 0x402454
cmp dword [ebp - 0x9c], 1
jne 0x40242b
push 6
jmp 0x402454
cmp dword [ebp - 0x9c], edi
jne 0x40246b
push 3
jmp 0x402454
cmp dword [ebp - 0xa0], 4
ja 0x40246b
push 4
jmp 0x402454
cmp dword [ebp - 0x9c], 2
jne 0x40246b
cmp byte [ebp + 0x76], al
jne 0x40246b
push 0xa
pop edi
jmp 0x40246b
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 0x402543
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 [0x5289f4]
mov esi, 0x5289f4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.004016a6
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.00401b57
cmp dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
jle 0x402679
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 0x4025eb
cmp cx, 0x2d
je 0x4025eb
push eax
lea eax, [ebp - 0xc]
call fcn.004019c5
lea eax, [ebp - 0xc]
push eax
lea edi, [ebp - 0x24]
call fcn.0040563f
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x40266a
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004058bb
mov eax, dword [edi]
inc eax
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401b57
push 0x3d
xor ecx, ecx
lea esi, [ebp - 0x2c]
call fcn.004120cd
mov esi, eax
cmp esi, 0xffffffff
je 0x40265f
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.00405492
lea edi, [ebp - 0x28]
call fcn.00402073
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
call fcn.00401ab9
lea edi, [ebp - 0x2c]
call fcn.00402073
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040151c
lea ebx, [ebp - 0x24]
call fcn.0040569a
mov ebx, dword [ebp + 8]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jl 0x4025af
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004058bb
lea edi, [ebp - 0x2c]
call fcn.004027be
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x403085
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 0x4030c1
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x4030c1
mov ecx, edi
mov dword [edi + 0x388], ebx
call fcn.00402ffd
mov esi, dword [ebp + 0x18]
mov dword [esi], eax
cmp dword [edi + 0x388], 0
je 0x4030c4
mov eax, ebx
jmp 0x40310b
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.0044d321
test eax, eax
jne 0x4030bd
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x403112
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 0x4030bd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 0x403
jne 0x40314c
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 0x403107
cmp eax, 0x465
jne 0x403188
xor eax, eax
lea esi, [edi + 0x2c]
push eax
mov dword [edi + 0x388], ebx
call fcn.0040cb11
mov eax, dword [edi + 0x30]
add esi, 0x2a0
push 5
lea ecx, [edi + 0x3bc]
mov dword [edi + 0x3f4], esi
call fcn.0045f2c7
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x403143
cmp eax, 0x110
jne 0x403109
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.00402abe
mov dword [esi], eax
jmp 0x403101

Function at 0x403684
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.004036f7
xor edi, edi
cmp dword [esi], edi
pop ecx
pop ecx
je 0x4036de
mov eax, esi
push dword [eax]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0041e85e
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 0x4036e5
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x4036a8
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 0x403d3d
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5289f4]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x5289f4
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.00402281
test eax, eax
je 0x403d8f
lea eax, [ebp - 8]
push eax
push str.KAV7NEEDREBOOT
mov ebx, esi
call fcn.004022cf
test eax, eax
mov ebx, dword [ebp - 8]
je 0x403d8f
inc edi
lea eax, [ebx - 0x10]
call fcn.0040151c
cmp dword [ebp - 4], 0
je 0x403da6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405111
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.00497490
add esp, 0xc
push str.SOFTWAREKingsoftAntivirusSetup
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CKANRegisterKey.0
mov dword [ebp - 8], edi
call fcn.00445a5a
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445ae2
mov eax, dword [0x5289f4]
mov ecx, 0x5289f4
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], eax
mov eax, 0x504420
mov ecx, str.coverinstall
jne 0x405177
mov ecx, eax
cmp dword [ebp + 8], edi
je 0x405181
mov eax, 0x4fa5dc
push ecx
push eax
lea eax, [ebp - 4]
push 0x4fa5ec
push eax
call fcn.0041e84b
mov ebx, dword [ebp - 4]
add esp, 0x10
push ebx
push str.installparam
lea esi, [ebp - 0xc]
call fcn.00445aa1
lea eax, [ebp - 0x50]
push eax
call fcn.0049893f
cmp eax, 0x5e
pop ecx
je 0x4051bb
cmp eax, 0xa8
jne 0x4051de
cmp dword [ebp - 8], edi
mov dword [ebp + 0xc], 1
je 0x4051de
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.00445a3d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4056fd
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
mov eax, dword [0x529930]
push ebx
push ebp
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x405717
mov ebx, dword [eax + 4]
jmp 0x405719
xor ebx, ebx
cmp ebx, edi
jne 0x405729
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x40574e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x40574e
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40574e
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.00405ef9
cmp eax, edi
mov dword [esp + 0xc], eax
jne 0x405778
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405880
mov edx, eax
call fcn.0040b1d5
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
jne 0x405794
lea eax, [esi + 4]
push eax
mov eax, ebx
call fcn.0040b088
cmp dword [esi + 0x324], edi
je 0x405827
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 0x4057ec
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 0x405808
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 0x405827
push edi
push edi
push 0xf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
call fcn.00406087
push 0x97
push edi
lea ebp, [esi + 4]
push ebp
mov dword [esi + 0x334], edi
call fcn.0041e82e
cmp dword [esp + 0x10], edi
je 0x405868
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x405868
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x405868
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x14]
call fcn.0040b1d5
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 0x40591a
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x529930]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x405937
mov esi, dword [eax + 4]
jmp 0x405939
xor esi, esi
cmp esi, ebp
jne 0x405949
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x40596e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x40596e
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40596e
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.004061cb
mov ebx, eax
cmp ebx, ebp
jne 0x405997
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405a73
mov edx, ebx
call fcn.0040b1d5
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040b088
cmp dword [edi + 0x36c], ebp
je 0x405a21
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 0x405a04
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 0x405a21
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.004626f3
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e82e
cmp dword [esp + 0x1c], ebp
je 0x405a5f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x405a5f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x405a5f
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040b1d5
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