joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490360
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x120], eax
push edi
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004a1e50
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esi], 0
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x4903d3
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
jne 0x4903d3
xor eax, eax
pop edi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004a1873
add esp, 0x124
ret
push 0x80
lea eax, [esp + 0x20]
push str.Service_Pack_1
push eax
call fcn.004a8090
add esp, 0xc
test eax, eax
jne 0x4903f3
or dword [esi], 1
jmp 0x490451
push 0x80
lea ecx, [esp + 0x20]
push str.Service_Pack_2
push ecx
call fcn.004a8090
add esp, 0xc
test eax, eax
jne 0x490413
or dword [esi], 2
jmp 0x490451
push 0x80
lea edx, [esp + 0x20]
push str.Service_Pack_3
push edx
call fcn.004a8090
add esp, 0xc
test eax, eax
jne 0x490433
or dword [esi], 3
jmp 0x490451
push 0x80
lea eax, [esp + 0x20]
push str.Service_Pack_4
push eax
call fcn.004a8090
add esp, 0xc
test eax, eax
jne 0x490451
or dword [esi], 4
shl dword [esi], 0x10
call fcn.004902a0
test eax, eax
je 0x490465
or dword [esi], 0xb
jmp 0x490593
call fcn.004901e0
test eax, eax
je 0x4904aa
cmp dword [esp + 0x18], 2
jne 0x4903bb
cmp dword [esp + 0xc], 6
jne 0x4903bb
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x490495
or dword [esi], 0xa
jmp 0x490593
cmp eax, 1
je 0x4904e0
test eax, eax
jne 0x4903bb
or dword [esi], 8
jmp 0x490593
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x490593
sub eax, 1
je 0x49056d
sub eax, 1
jne 0x490593
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x4904f8
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x49048d
cmp eax, 1
jne 0x4904e8
or dword [esi], 9
jmp 0x490593
test eax, eax
jne 0x490593
or dword [esi], 8
jmp 0x490593
cmp eax, 5
jne 0x490521
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x49050e
or dword [esi], 7
jmp 0x490593
cmp eax, 1
jne 0x490518
or dword [esi], 6
jmp 0x490593
test eax, eax
jne 0x490593
or dword [esi], 5
jmp 0x490593
cmp eax, 4
ja 0x490593
or dword [esi], 4
cmp eax, 4
jne 0x490593
lea ecx, [esp + 0x1c]
push str.Service_Pack_6
push ecx
call fcn.004a3704
add esp, 8
test eax, eax
jne 0x490593
lea edx, [esp + 4]
push edx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x490593
cmp dword [esp + 0xc], 4
jne 0x490593
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x490581
or dword [esi], 1
jmp 0x490593
cmp eax, 0xa
jne 0x49058b
or dword [esi], 2
jmp 0x490593
cmp eax, 0x5a
jne 0x490593
or dword [esi], 3
mov ecx, dword [esp + 0x124]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004a1873
add esp, 0x124
ret
Function at 0x493b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c609e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
xor ebp, ebp
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
lea edi, [esi + 0x14]
mov dword [esp + 0x1c], ebp
mov ecx, edi
mov dword [esi], vtable.TiXmlAttribute.0
call fcn.00403270
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.00403270
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x20], 2
call fcn.00418420
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00418420
mov dword [esi + 0x10], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x494160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c6063
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea ebx, [esi + 0x20]
xor ebp, ebp
mov ecx, ebx
mov dword [esi + 0xc], ebp
mov dword [esi], vtable.TiXmlNode.0
call fcn.00403270
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esp + 0x1c], ebp
lea edi, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
or eax, 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0x14]
mov dword [edi + 0xc], ebp
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.00403270
lea ecx, [edi + 0x30]
call fcn.00403270
mov dword [edi + 0x10], ebp
mov dword [edi + 0x50], edi
mov dword [edi + 0x4c], edi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 1
push eax
mov ecx, ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x18], ebp
call fcn.00418420
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x4949c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c75a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, edx
test esi, esi
mov edi, ecx
jne 0x494a28
cmp byte [edi + 0x44], dl
jne 0x494a21
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 2
mov eax, dword [str.Failed_to_open_file]
push eax
lea ecx, [edi + 0x4c]
call fcn.00418420
or eax, 0xffffffff
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], eax
xor al, al
jmp 0x494bd9
call fcn.00493eb0
push 2
or ebp, 0xffffffff
push 0
push esi
mov dword [edi + 8], ebp
mov dword [edi + 4], ebp
call fcn.004a7af5
push esi
call fcn.004a7d12
push 0
push 0
push esi
mov ebx, eax
call fcn.004a7af5
add esp, 0x1c
test ebx, ebx
jg 0x494a86
cmp byte [edi + 0x44], 0
jne 0x494a7f
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 0xd
mov ecx, dword [str.Error_document_empty.]
push ecx
lea ecx, [edi + 0x4c]
call fcn.00418420
mov dword [edi + 0x70], ebp
mov dword [edi + 0x6c], ebp
xor al, al
jmp 0x494bd9
lea ecx, [esp + 0x14]
call fcn.00403270
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x28]
cmp eax, ebx
ja 0x494ac1
cmp dword [esp + 0x2c], ebx
je 0x494ac1
push 1
push ebx
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.00404930
test al, al
je 0x494ac1
push ebp
lea ecx, [esp + 0x18]
call fcn.004048e0
lea edx, [ebx + 1]
push edx
call fcn.004a07b5
push esi
push 1
mov ebp, eax
push ebx
push ebp
mov byte [ebp], 0
call fcn.004a8546
add esp, 0x14
cmp eax, 1
je 0x494b23
push ebp
call fcn.004a186e
add esp, 4
cmp byte [edi + 0x44], 0
jne 0x494b13
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 2
mov eax, dword [str.Failed_to_open_file]
push eax
lea ecx, [edi + 0x4c]
call fcn.00418420
or eax, 0xffffffff
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], eax
lea ecx, [esp + 0x14]
call fcn.00403370
xor al, al
jmp 0x494bd9
mov byte [ebx + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x494b8b
mov ebx, 0xa
mov cl, byte [esi]
cmp cl, bl
jne 0x494b55
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ef60
add esi, 1
mov eax, esi
jmp 0x494b86
cmp cl, 0xd
jne 0x494b83
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x494b6d
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ef60
push ebx
lea ecx, [esp + 0x18]
call fcn.00470ee0
cmp byte [esi + 1], bl
jne 0x494b4e
add esi, 2
mov eax, esi
jmp 0x494b86
add esi, 1
cmp byte [esi], 0
jne 0x494b36
sub esi, eax
je 0x494b9a
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ef60
push ebp
call fcn.004a186e
mov edx, dword [esp + 0x48]
mov esi, dword [edi]
add esp, 4
push edx
push 0
lea ecx, [esp + 0x1c]
add esi, 8
call fcn.004033a0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov ecx, edi
call fcn.004020d0
test al, al
lea ecx, [esp + 0x14]
jne 0x494b17
call fcn.00403370
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004a1873
add esp, 0x2c
ret 4
Function at 0x495e50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c8038
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00495780
mov dword [esp + 0x2c], ebx
mov ebp, dword [0x4f7334]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x2c], 1
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
mov edi, dword [esp + 0x14]
jne 0x495eb5
lea ebx, [eax - 0xf]
jmp 0x496006
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
je 0x495ee2
push 0x4e1cf8
push 0x4e1cf8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esp + 0x18]
call fcn.00495c00
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 8]
cmp eax, ebx
jge 0x495eee
or eax, 0xffffffff
jmp 0x495f09
push 0x4e1cf8
push edi
call fcn.004a5b59
add esp, 8
cmp eax, ebx
jne 0x495f05
or eax, 0xffffffff
jmp 0x495f09
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x495ffa
lea ebp, [eax + 1]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
lea ebx, [esp + 0x18]
call fcn.00495830
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
mov esi, dword [eax - 8]
push eax
lea eax, [esp + 0x24]
call fcn.00495c00
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x4f7324
je 0x495f6b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x495f6b
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004a186e
add esp, 4
mov esi, dword [edi - 8]
mov ebx, ebp
test ebx, ebx
jle 0x495fae
test esi, esi
jle 0x495fae
cmp ebx, esi
jle 0x495f7e
mov ebx, esi
lea edi, [esp + 0x14]
call fcn.00495c90
mov edi, dword [esp + 0x14]
mov eax, esi
sub eax, ebx
lea ecx, [eax + eax + 2]
mov eax, dword [edi - 4]
push ecx
lea edx, [edi + ebx*2]
push edx
lea ecx, [eax + eax + 2]
push ecx
push edi
call fcn.0041df70
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
mov ebp, dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x495fcb
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x496002
cmp dword [edi - 8], 0
jge 0x495fd6
or eax, 0xffffffff
jmp 0x495ff1
push 0x4e1cf8
push edi
call fcn.004a5b59
add esp, 8
test eax, eax
jne 0x495fed
or eax, 0xffffffff
jmp 0x495ff1
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x495f12
mov dword [esp + 0x18], 1
mov ebx, dword [esp + 0x18]
lea edx, [ebp - 0xc]
cmp edx, 0x4f7324
je 0x496028
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x496028
push esi
call fcn.004a186e
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x4f7324
je 0x496049
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x496049
push edi
call fcn.004a186e
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4965a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca308
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
call fcn.00408270
lea ecx, [esp + 8]
push ecx
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.004034a0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00403470
call fcn.0049d1d0
push edi
mov dword [edi + 0x1c], 0
call fcn.00496650
cmp dword [edi + 0x1c], 0
je 0x49661c
push edi
call fcn.00496970
push edi
call fcn.004970a0
push edi
call fcn.004978f0
push edi
call fcn.004976d0
mov ecx, edi
call fcn.00497380
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x496650
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c93a8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
xor ebx, ebx
lea esi, [esp + 0x50]
mov byte [esp + 0x17], bl
call fcn.0049d490
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], ebx
call fcn.004033d0
mov bl, 1
mov ecx, ebp
mov byte [esp + 0x78], bl
call fcn.00470f10
test al, al
je 0x4966e0
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0049d080
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.004034a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00403470
jmp 0x4966ea
push ebp
lea ecx, [esp + 0x38]
call fcn.004034a0
lea edi, [esp + 0x34]
call fcn.0049d1d0
push 0x4e2e70
lea ecx, [esp + 0x1c]
call fcn.00408270
lea ecx, [esp + 0x18]
push ecx
mov ebx, edi
mov byte [esp + 0x7c], 3
call fcn.0049d340
mov ebx, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00403470
mov ecx, edi
call fcn.00403570
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x496745
mov dword [ebp + 0x1c], 0
jmp 0x4967fa
lea ecx, [esp + 0x50]
mov dword [ebp + 0x1c], ebx
call fcn.0049ceb0
push 0x4e2e88
lea ecx, [esp + 0x1c]
call fcn.00408270
lea ebx, [esp + 0x18]
lea esi, [esp + 0x50]
mov byte [esp + 0x78], 4
call fcn.0049d2b0
mov bl, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00403470
mov ecx, esi
call fcn.00403570
push eax
call edi
cmp eax, 0xffffffff
je 0x49679f
mov edx, esi
push edx
lea ecx, [ebp + 0x80]
call fcn.004034a0
jmp 0x4967f6
mov eax, dword [0x4f7388]
push str.SKIN
push str.QMUIRES.dat
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4967fa
mov ecx, dword [0x4f7388]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4967fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4967fa
mov edx, dword [0x4f7388]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
lea edi, [ebp + 0xb0]
mov esi, eax
call fcn.00495760
mov byte [esp + 0x17], bl
lea ecx, [esp + 0x34]
call fcn.00403470
lea ecx, [esp + 0x50]
call fcn.00403470
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004a1873
add esp, 0x68
ret 4
Function at 0x496cf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x3c], ecx
xor bl, bl
mov ecx, edi
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x2d], bl
call fcn.00470f10
test al, al
jne 0x496e5a
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403420
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0049d1d0
call fcn.00409d40
mov ecx, esi
mov dword [ebp - 0x34], eax
call fcn.004033a0
mov ebx, eax
test ebx, ebx
je 0x496daa
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x496daa
lea eax, [esi + esi]
call fcn.004b37f0
mov edi, esp
test edi, edi
je 0x496daa
mov edx, dword [ebp - 0x34]
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push edx
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x496dac
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.00408270
lea eax, [ebp - 0x58]
push eax
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0049d340
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00403470
mov ecx, ebx
call fcn.00403570
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x496e4d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x496e46
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x34], 0
call fcn.004a07b5
mov esi, dword [ebp - 0x38]
add esp, 4
push 0
lea edx, [ebp - 0x34]
push edx
push edi
push eax
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496e46
cmp dword [ebp - 0x34], edi
jne 0x496e46
mov eax, dword [ebp - 0x3c]
mov dword [eax], edi
mov ecx, dword [esi]
mov byte [edi + ecx], 0
mov byte [ebp - 0x2d], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.00403470
mov al, byte [ebp - 0x2d]
jmp 0x496e5c
mov al, bl
lea esp, [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1873
mov esp, ebp
pop ebp
ret 8
Function at 0x4970a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ca2c7
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104]
lea eax, [esp + 0x74]
xor esi, esi
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00494810
push 0x4e2ec4
lea ecx, [esp + 0x24]
mov dword [esp + 0x100], esi
call fcn.004032c0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x2c]
mov byte [esp + 0x108], 1
call fcn.00496e80
test al, al
lea ecx, [esp + 0x20]
sete bl
mov byte [esp + 0xfc], 0
call fcn.00403370
test bl, bl
jne 0x497286
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x74]
push eax
call fcn.004954f0
test al, al
je 0x497286
push str.strings
lea ecx, [esp + 0x78]
call fcn.00402060
cmp eax, esi
je 0x497286
mov ecx, str.string
call fcn.00494080
mov edi, eax
cmp edi, esi
je 0x497282
mov edi, edi
lea ecx, [esp + 0x58]
call fcn.00403270
lea ecx, [esp + 0x3c]
call fcn.00403270
lea esi, [edi + 0x44]
push esi
mov ebx, 0x4e1174
mov byte [esp + 0x100], 3
call fcn.00495490
test eax, eax
je 0x4971c5
mov ecx, eax
call fcn.0040fca0
jmp 0x4971c7
xor eax, eax
push eax
lea ecx, [esp + 0x5c]
call fcn.00418420
push esi
mov ebx, str.value
call fcn.00495490
test eax, eax
je 0x4971e9
mov ecx, eax
call fcn.0040fca0
jmp 0x4971eb
xor eax, eax
push eax
lea ecx, [esp + 0x40]
call fcn.00418420
lea ecx, [esp + 0x58]
call fcn.004035a0
test eax, eax
je 0x497258
lea ecx, [esp + 0x3c]
call fcn.004035a0
test eax, eax
je 0x497258
lea ecx, [esp + 0x3c]
lea ebx, [esp + 0x20]
call fcn.0048b4a0
mov ecx, ebx
push ecx
mov byte [esp + 0x100], 4
call fcn.00497010
add esp, 4
mov edx, ebx
push edx
push ecx
lea edx, [ebp + 0x2c]
lea ecx, [esp + 0x60]
call fcn.00498810
add esp, 4
mov ecx, eax
call fcn.004034a0
mov ecx, ebx
mov byte [esp + 0xfc], 3
call fcn.00403470
mov ecx, str.string
mov eax, edi
call fcn.004940f0
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00403370
lea ecx, [esp + 0x58]
call fcn.00403370
test edi, edi
jne 0x497190
xor esi, esi
mov bl, 1
jmp 0x49728a
mov bl, byte [esp + 0x17]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x49729b
push eax
call fcn.004a186e
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0xfc], 0xffffffff
call fcn.00402090
mov al, bl
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a1873
add esp, 0xec
ret 4
Function at 0x498130
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c934b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x43c]
xor edi, edi
push 0x206
lea eax, [esp + 0x1e]
push edi
push eax
mov word [esp + 0x24], di
call fcn.004a1e50
push 0x206
lea ecx, [esp + 0x232]
push edi
push ecx
mov word [esp + 0x238], di
call fcn.004a1e50
add esp, 0x18
push edi
push 0x1a
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ebx, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.004957d0
mov ecx, esi
mov dword [esp + 0x434], edi
call fcn.00495e50
mov esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4f7324
je 0x498209
lea ebx, [eax - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498209
push ebx
call fcn.004a186e
add esp, 4
cmp esi, edi
je 0x498274
lea edx, [esp + 0x220]
push edx
push edi
push 0x4e2f90
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x220]
push 0x4e2f98
push ecx
call fcn.004a600a
mov esi, eax
add esp, 8
cmp esi, edi
je 0x498274
mov edx, dword [esp + 0x440]
push esi
push edx
push 1
push ebp
call fcn.004a7edf
push esi
call fcn.004a5cee
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004a1873
add esp, 0x424
ret
Function at 0x49d7a0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x49d7a7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0049d7b0