joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4437e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44382a
call fcn.0044f02d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44382a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x443821
xor eax, eax
jmp 0x443832
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00443838
pop edi
pop esi
pop ebx
ret 4

Function at 0x44e973
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0044f02d
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44e9b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44e9b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x44e9b4
xor eax, eax
jmp 0x44ea32
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004448ce
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x44e9ec
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x44e9d6
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0044eb23
push ebx
mov edi, eax
call fcn.004448f7
test edi, edi
pop ecx
je 0x44ea2e
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0044e8ec
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0044ea37
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x72c00
push 0
call sub.kernel32.dll_GetSystemDefaultLangID
call sub.kernel32.dll_VirtualAlloc
call fcn.0049f933
ret
Function at 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x100357d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x100357e3
pop dword [ebp - 0x34]
mov eax, 0xd071d247
add eax, 0x3f91859c
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x217b1577
sub dword [ebp - 0x44], 0xd328d02c
mov dword [ebp - 0x40], 0xe12998e4
sub dword [ebp - 0x40], 0xaef64c9f
mov dword [ebp - 0x3c], 0x7beee217
sub dword [ebp - 0x3c], 0x2fa29de9
mov dword [ebp - 0x38], 0x9282e6c
add dword [ebp - 0x38], 0xf6d7d194
lea eax, [ebp - 0x44]
push eax
mov eax, 0xc353d3f2
add eax, 0x4cb32d1a
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xef77f89e
sub dword [ebp - 0x44], 0x7b058f48
mov dword [ebp - 0x40], 0x7ca1611f
sub dword [ebp - 0x40], 0x3b34ffaa
mov dword [ebp - 0x3c], 0x94952038
sub dword [ebp - 0x3c], 0x3125b3cc
mov dword [ebp - 0x38], 0x6dbd7a80
add dword [ebp - 0x38], 0x92428580
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x626ff
push 0
call eax
mov ecx, 0xd93bfefc
add ecx, 0x26c435af
mov edx, eax
mov ebx, 0x10084c00
add ebx, dword [ebp - 0x34]
mov edi, 0x53abed34
add edi, 0xd86144da
add dword [ebp - 4], 0x5ea586e7
mov esi, dword [ebx]
sub esi, edi
xor dword [ebp - 4], 0xdd0b45c6
mov dword [edx], esi
xor dword [ebp - 0x14], 0x864e5564
add edx, 0x24fa3691
add edx, 0xdb05c973
add ebx, 4
loop 0x100358fa
add eax, 0xd3c9e7af
add eax, 0x2c36ddd0
mov ebx, eax
add eax, 0x28395eb6
add eax, 0xd7c6a14f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1046a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1046a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1046a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046a06a
add dl, dl
jne 0x1046a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046a0dc
xor eax, eax
add dl, dl
jne 0x1046a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046a17d
add dl, dl
jne 0x1046a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1046a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1046a075
mov eax, 1
add dl, dl
jne 0x1046a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046a0e1
sub eax, ebx
mov ebx, 1
jne 0x1046a128
mov ecx, 1
add dl, dl
jne 0x1046a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1046a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1046a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1046a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046a136
cmp eax, 0x7d00
jae 0x1046a16d
cmp eax, 0x500
jb 0x1046a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046a075
cmp eax, 0x7f
ja 0x1046a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1046a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1046a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
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 [0x4dd4b4]
mov edi, 0x4dd4b4
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.004875f3
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 [0x4dd4b4]
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.0048b29e
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.004442f7
test eax, eax
je 0x401d43
push 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0048a740
mov eax, dword [0x4dd4b4]
add esp, 0xc
mov ecx, 0x4dd4b4
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.004442cd
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.0048a6a1
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.0048a3a0
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 [0x4dd4b4]
mov esi, 0x4dd4b4
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.00405465
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x402644
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004056e1
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.004120f3
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.004052e4
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.004054c0
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.004056e1
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.0045f8a5
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.0040cbbe
mov eax, dword [edi + 0x30]
add esi, 0x2a0
push 5
lea ecx, [edi + 0x3bc]
mov dword [edi + 0x3f4], esi
call fcn.0045c91f
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.0041e2e0
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 [0x4dd4b4]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x4dd4b4
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 0x404fbc
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.0048a3a0
add esp, 0xc
push str.SOFTWAREKingsoftAntivirusSetup
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CKANRegisterKey.0
mov dword [ebp - 8], edi
call fcn.00443991
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00443a19
mov eax, dword [0x4dd4b4]
mov ecx, 0x4dd4b4
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], eax
mov eax, 0x4bd6b8
mov ecx, str.coverinstall
jne 0x405022
mov ecx, eax
cmp dword [ebp + 8], edi
je 0x40502c
mov eax, 0x4b945c
push ecx
push eax
lea eax, [ebp - 4]
push 0x4b946c
push eax
call fcn.0041e2cd
mov ebx, dword [ebp - 4]
add esp, 0x10
push ebx
push str.installparam
lea esi, [ebp - 0xc]
call fcn.004439d8
lea eax, [ebp - 0x50]
push eax
call fcn.0048c925
cmp eax, 0x5e
pop ecx
jne 0x405082
cmp dword [ebp - 8], edi
mov dword [ebp + 0xc], 1
je 0x405082
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.00443974
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405523
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
mov eax, dword [0x4de3c0]
push ebx
push ebp
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x40553d
mov ebx, dword [eax + 4]
jmp 0x40553f
xor ebx, ebx
cmp ebx, edi
jne 0x40554f
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x405574
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x405574
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405574
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 + 0x330], edi
call fcn.00405d0c
cmp eax, edi
mov dword [esp + 0xc], eax
jne 0x40559e
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4056a6
mov edx, eax
call fcn.0040b287
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
jne 0x4055ba
lea eax, [esi + 4]
push eax
mov eax, ebx
call fcn.0040b13a
cmp dword [esi + 0x320], edi
je 0x40564d
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 0x405612
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 0x40562e
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 0x40564d
push edi
push edi
push 0xf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
call fcn.00405e92
push 0x97
push edi
lea ebp, [esi + 4]
push ebp
mov dword [esi + 0x330], edi
call fcn.0041e2b0
cmp dword [esp + 0x10], edi
je 0x40568e
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x40568e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x40568e
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x14]
call fcn.0040b287
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x334]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4