joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004c82
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x100bc0db
call fcn.1008b701
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1000158b
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x10004ce2
lea eax, [ecx - 1]
test eax, eax
js 0x10004d48
cmp eax, ecx
jg 0x10004d48
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x10004ce2
cmp eax, 0x2f
je 0x10004ce2
push 1
push 0x100d1cf8
lea ecx, [ebp - 0x14]
call fcn.10003930
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004cf5
test eax, 0x4800
jne 0x10004d2d
lea ecx, [ebp - 0x14]
call fcn.10004c1d
lea ecx, [ebp - 0x14]
call fcn.10004354
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], ebx
je 0x10004d2a
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x18], edi
call fcn.1000158b
add eax, 0x10
mov dword [edi], eax
call fcn.10004c82
pop ecx
test eax, eax
je 0x10004d2d
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.100018e3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.100018e3
mov eax, ebx
call fcn.1008b6ab
ret
push 0x80070057
call fcn.10001e48
int3

Function at 0x10004d53
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
jb 0x10004d6b
mov ecx, dword [ecx]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10004d89
or edx, 0xffffffff
mov eax, edx
jmp 0x10004da1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test edx, edx
jg 0x10004da1
jl 0x10004d99
test eax, eax
jae 0x10004da1
or eax, 0xffffffff
mov edx, closesocket
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x100050f5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x238], edx
push edi
push 2
mov dword [ebp - 0x234], ecx
mov esi, edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10005132
xor eax, eax
jmp 0x100051fd
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100051f4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x228], eax
je 0x10005174
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10005152
jmp 0x1000517a
mov esi, dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10005195
mov eax, esi
jmp 0x100051fd
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x100051bb
cmp dword [ebp - 0x228], esi
je 0x100051c1
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100051a5
jmp 0x100051f2
mov esi, dword [ebp - 0x228]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x100051d0
sub edx, ecx
lea eax, [ebp - 0x20c]
mov ecx, dword [ebp - 0x238]
sar edx, 1
push edx
push eax
call fcn.10005bd6
mov edi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret

Function at 0x1000612f
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push dword [esi]
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 8], 0x10
push dword [esi + 0x100d2360]
call edi
mov dword [ebp + esi - 0x1c], eax
add esi, 4
cmp esi, 0x10
jl 0x10006158
mov ebx, dword [ebp - 0xc]
mov esi, 0xe3779b90
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
sub edx, ecx
mov ecx, edx
mov eax, edx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [esi + edx]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub ebx, ecx
sub dword [ebp - 8], 1
jne 0x10006177
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 4], edx
call edi
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
push eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000653f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebx], esi
mov dword [edi + 8], eax
test eax, eax
js 0x1000655d
cmp eax, 3
jl 0x10006560
mov dword [edi + 8], esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100065dd
cmp ecx, 0x1869f
ja 0x100065dd
mov eax, dword [ebp + 0x14]
push esi
push esi
push esi
push esi
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10006598
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e8480
mov dword [ebx], eax
jmp 0x100065e5
push esi
push esi
push edi
push 0x100065ee
push esi
push esi
call fcn.100963ac
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x100065c6
push esi
push esi
push edi
push 0x100065ee
push esi
push esi
call fcn.100963ac
add esp, 0x18
mov dword [edi + 0x18], eax
cmp dword [edi + 0x18], esi
jne 0x100065d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x2dc6c0
jmp 0x10006594
xor esi, esi
inc esi
jmp 0x100065e5
add ecx, 0xf4240
mov dword [ebx], ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10006af7
Capabilities:
Get common file path

Disassembly:
push 0x43c
mov eax, 0x100bc24b
call fcn.1008b701
mov ebx, ecx
mov esi, 0x20a
lea eax, [ebp - 0x430]
push esi
xor edi, edi
push edi
push eax
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push edi
push eax
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edi, [ebx + 0x20]
cmp dword [edi], 0
jne 0x10006b67
push edi
call fcn.100b2590
mov ecx, dword [edi]
test ecx, ecx
je 0x10006c09
mov esi, dword [ecx]
lea eax, [ebx + 4]
mov edx, ebx
neg edx
sbb edx, edx
and edx, eax
push edx
call dword [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x434], 7
xor eax, eax
mov dword [ebp - 0x438], ecx
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
mov dword [ebp - 4], ecx
push eax
mov ecx, ebx
call fcn.100066ff
lea edx, [ebp - 0x220]
lea ecx, [ebx + 0x28]
xor ebx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10006bbc
sub edx, esi
lea eax, [ebp - 0x220]
sar edx, 1
push edx
push eax
call fcn.10005bd6
mov ecx, dword [edi]
lea edx, [ebp - 0x448]
cmp dword [ebp - 0x434], 8
lea esi, [ebp - 0x220]
push esi
cmovae edx, dword [ebp - 0x448]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
push ebx
push 1
lea ecx, [ebp - 0x448]
call fcn.10001f43
call fcn.1008b6ab
ret
Function at 0x10006d5f
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x10006e85
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006e85
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x10006e83
cmp ebx, 0xffffffff
je 0x10006e83
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [ebp - 8], edi
jne 0x10006e7c
lea ecx, [esi - 1]
cmp ecx, 0x27ff
ja 0x10006e7c
push esi
call fcn.1008ad69
mov edi, eax
pop ecx
test edi, edi
je 0x10006e7c
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 0x14], eax
call fcn.1008ad69
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x10006e13
push edi
call fcn.1008ad72
jmp 0x10006e7b
push esi
push 0
push edi
call fcn.1008df10
lea eax, [esi + 0x40]
push eax
push 0
push dword [ebp - 0x10]
call fcn.1008df10
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
add esp, 0x18
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006e6c
cmp dword [ebp - 0xc], esi
jne 0x10006e6c
lea eax, [ebp - 0x14]
mov edx, esi
push eax
push dword [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.100061d6
add esp, 0xc
test al, al
je 0x10006e6c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.1001b25c
push edi
call fcn.1008ad72
push dword [ebp - 0x10]
call fcn.1008ad72
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 8
Function at 0x10007a80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
cmp dword [ebp + 8], ebx
je 0x10007b3f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
cmp dword [esi + 4], ebx
je 0x10007b59
xor ecx, ecx
lea eax, [esi + 0xc]
inc ecx
cmp dword [eax], ebx
je 0x10007b59
push 0x4ff
push 0x64
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x10007b3b
cmp eax, 0xffffffff
je 0x10007b59
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x20]
inc edi
push edi
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10007b17
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 0x12
cmove eax, edi
mov dword [ebp - 0x24], eax
jmp 0x10007b1a
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10007b2e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, 0x2710
ja 0x10007b59
lea eax, [esi + 0xc]
push 1
pop ecx
cmp dword [esi + 4], ebx
jne 0x10007abb
jmp 0x10007b59
xor eax, eax
jmp 0x10007b56
cmp dword [esi + 0xc], ebx
je 0x10007b59
push 0xbb8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
lea ebx, [eax + 1]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4
Function at 0x1000831a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x48c], ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x42
mov edi, eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.1008df10
add esp, 0xc
cmp edi, 0xffffffff
je 0x10008440
test edi, edi
je 0x10008440
mov ebx, 0x22c
lea eax, [ebp - 0x488]
push ebx
push esi
push eax
call fcn.1008df10
add esp, 0xc
mov dword [ebp - 0x488], ebx
lea eax, [ebp - 0x488]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000842c
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
je 0x1000841e
push 0x208
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x103
push ebx
push eax
call fcn.10095a99
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [ebp - 0x258]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x100083e5
sub edx, ecx
lea eax, [ebp - 0x50]
sar edx, 1
lea ecx, [ebp - 0x258]
push eax
add edx, edx
call fcn.1004bda7
pop ecx
test al, al
je 0x1000841e
push dword [ebp - 0x48c]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10008436
lea eax, [ebp - 0x488]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10008392
jmp 0x10008439
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret

Function at 0x1000849c
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
cmp ecx, 3
je fcn.10008544
cmp ecx, 0xe
je fcn.100087c4
cmp ecx, 1
je fcn.100084ba
xor eax, eax
ret

Function at 0x100084ba
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008df10
lea eax, [ebp - 0x210]
mov edx, str.InstallDir
push eax
mov ecx, str.SOFTWARETencentQQPCMgr
call fcn.1001aa1e
add esp, 0x10
test eax, eax
je 0x10008536
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.QQPCTray.exe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1009600a
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x10008544
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x100bc4b2
call fcn.1008b701
lea eax, [ebp - 0x22c]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x22c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008698
mov edi, 0x20a
mov dword [ebp - 0x228], esi
push edi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.1008df10
add esp, 0xc
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push str.ProgramPath
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10008698
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x100085de
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x21e], ax
je 0x1000861b
mov word [ebp + ecx*2 - 0x21c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, edi
jae 0x100086a0
xor eax, eax
mov word [ebp + ecx - 0x21c], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
push eax
lea ecx, [ebp - 0x220]
call fcn.100055e9
push str.kxetray.exe
lea edx, [ebp - 0x220]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x230]
call fcn.10001464
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x220]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.1000559b
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.100018e3
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp - 0x22c]
test eax, eax
cmovne esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.100018e3
mov eax, esi
call fcn.1008b6ab
ret
call fcn.1008aed6
int3

Function at 0x10008aef
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008bb7
push edi
mov edi, 0x100
mov dword [ebp - 0x10c], esi
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.1008df10
add esp, 0xc
mov dword [ebp - 0x108], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push str.KAVINSTALLNEEDREBOOT
push dword [ebp - 0x110]
call edi
test eax, eax
je 0x10008ba7
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x10008baa
xor esi, esi
inc esi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret
Function at 0x10008ff0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x10009024
call fcn.10011361
test eax, eax
js 0x1000902e
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4
Function at 0x10012ea1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push dword [esi]
push 1
push dword [esi + 8]
push dword [ebp + 8]
call fcn.1009ec8f
mov ecx, dword [esi + 8]
add esp, 0x10
lea ebx, [eax - 1]
mov eax, ecx
neg ebx
cdq
sbb bl, bl
idiv dword [esi + 0x18]
inc bl
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x1c], eax
test bl, bl
je 0x1001300e
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push ecx
mov ecx, esp
jb 0x10012ef2
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.read
call fcn.100115e9
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, dword [esi + 0x18]
add esp, 0x10
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
test eax, eax
je 0x10012fc4
mov ebx, ecx
dec eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 8], 1
jne 0x10012f36
cmp byte [edi], al
jmp 0x10012f3e
xor ebx, ebx
cmp word [edi], bx
mov ebx, dword [ebp - 4]
sete al
test eax, eax
je 0x10012f6b
test ecx, ecx
je 0x10012f61
cmp edi, ecx
je 0x10012f61
mov eax, edi
imul edx, ebx
sub eax, ecx
push eax
push ecx
sub ecx, edx
push ecx
call fcn.1008cbe0
add esp, 0xc
mov edx, dword [esi + 0x18]
inc ebx
mov dword [ebp - 4], ebx
lea ecx, [edx + edi]
mov eax, dword [ebp - 0xc]
add edi, edx
test eax, eax
jne 0x10012f26
mov ebx, dword [ebp - 0x10]
test ecx, ecx
je 0x10012f99
cmp edi, ecx
je 0x10012f99
mov eax, dword [esi + 0x18]
sub edi, ecx
push edi
mov edi, dword [ebp - 4]
imul eax, edi
push ecx
sub ecx, eax
push ecx
call fcn.1008cbe0
add esp, 0xc
jmp 0x10012f9c
mov edi, dword [ebp - 4]
test edi, edi
je 0x10012fc4
push 0xffffffffffffffff
push edi
push ecx
mov eax, esp
xor ecx, ecx
push ecx
xor edx, edx
inc edx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.nulls_removed
call fcn.100115e9
add esp, 0x10
sub dword [esi + 0x1c], edi
cmp dword [esi + 0x18], 1
jle 0x10013015
test byte [esi + 4], 0x80
je 0x10013015
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x10012feb
mov edx, dword [ebp + 8]
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x10012fda
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor ecx, ecx
push ecx
mov edx, ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.100115e9
add esp, 0x10
jmp 0x10013015
mov ecx, esi
call fcn.100129de
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100133c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi + 0x18]
imul eax, dword [esi + 0x1c]
cmp dword [ebp + 0xc], 0
cmovne edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
test byte [esi + 4], 0x80
mov dword [esi + 8], eax
je 0x10013455
test edx, edx
jne 0x10013420
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008ad69
mov ecx, dword [esi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 0xc], ebx
push ecx
push edi
push ebx
call fcn.1008d990
add esp, 0x10
mov edx, ebx
mov edi, ebx
mov ecx, dword [esi + 0x1c]
jmp 0x10013432
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x10013425
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
and dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.100115e9
add esp, 0x10
push dword [esi]
push 1
push dword [esi + 8]
push edi
call fcn.1009ef77
add esp, 0x10
lea ebx, [eax - 1]
mov eax, dword [ebp + 0xc]
neg ebx
sbb bl, bl
inc bl
test eax, eax
je 0x1001347c
push eax
call fcn.1008ad72
pop ecx
test bl, bl
je 0x100134b4
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push 0xffffffffffffffff
push dword [esi + 0x1c]
push ecx
mov ecx, esp
jb 0x10013499
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.write
call fcn.100115e9
add esp, 0x10
jmp 0x100134bb
mov ecx, esi
call fcn.100129de
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x10016e00
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x218
mov eax, 0x100bd81f
call fcn.1008b701
mov esi, dword [0x1010fbfc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x220], 0
push str.RT_RCDATA
push 0x6f
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10016e3a
xor eax, eax
jmp 0x10016f10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10016e33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10016e33
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10016e33
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1008df10
push 0x104
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.10095a99
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016ebd
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10016ee9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10016e33
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x224]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10016edd
xor eax, eax
inc eax
call fcn.1008b6ab
ret