joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475a30
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da33d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push str.CommonProgramW6432
call edi
mov esi, eax
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x475bd2
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00417ea0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.CommonProgramW6432
call edi
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x475bd2
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 8
cmovae eax, edi
cmp word [eax + edx*2 - 2], 0
jne 0x475b52
lea ecx, [edx - 1]
mov dword [ebp - 0x40], 0
cmp edx, ecx
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
cmovb ecx, edx
cmp esi, 8
push ecx
cmovae eax, edi
lea ecx, [ebp - 0x40]
push eax
call fcn.00408960
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b1a0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x475b49
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475b3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475c56
push edx
push ecx
call fcn.004a7d37
add esp, 8
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov eax, SysReAllocString
sub eax, edx
cmp eax, 0x20
jb 0x475c51
push 0x20
push str.microsoft_sharedinkTabTip.exe
cmp esi, 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, edi
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.0040b100
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x475bba
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475bb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475c56
push edx
push ecx
call fcn.004a7d37
add esp, 8
cmp dword [ebp - 0x30], 0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
jne 0x475be1
push 0x3e
push str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
lea ecx, [ebp - 0x28]
call fcn.00408960
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x475c36
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475c2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475c56
push edx
push ecx
call fcn.004a7d37
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
call fcn.004087a0
call fcn.004af45f
int3
Function at 0x476716
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 0x74
mov eax, dword [eax + 0x30]
cmp dword [eax + 0xa4], 6
jae 0x4768fa
cmp dword [0x527b68], 0
jne 0x4768f3
push ebx
push ebp
push edi
xor ebp, ebp
mov edx, str.NtOpenKeyedEvent
push ebp
mov ecx, 0x51f028
call fcn.00476fb5
mov ebx, eax
test ebx, ebx
jne 0x476766
push ebp
push ebp
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x5c
pop edx
push 0x4b
pop eax
push 0x65
pop ecx
push 0x72
mov word [esp + 0x36], ax
pop eax
push 0x6e
mov word [esp + 0x3a], ax
pop eax
push 0x6c
mov word [esp + 0x3c], ax
pop eax
push 0x4f
pop edi
push 0x62
mov word [esp + 0x40], ax
pop eax
push 0x6a
mov word [esp + 0x44], ax
pop eax
push 0x63
mov word [esp + 0x46], ax
mov word [esp + 0x38], cx
mov word [esp + 0x3e], cx
mov word [esp + 0x48], cx
pop ecx
push 0x74
pop ebp
push 0x73
pop eax
push 0x43
mov word [esp + 0x4e], ax
pop eax
push 0x72
mov word [esp + 0x52], ax
mov word [esp + 0x34], dx
mov word [esp + 0x50], dx
pop edx
push 0x69
pop eax
push 0x53
mov word [esp + 0x56], ax
pop eax
push 0x65
mov word [esp + 0x5a], ax
pop eax
push 0x75
mov word [esp + 0x5c], ax
pop eax
push 0x66
mov word [esp + 0x62], ax
pop eax
push 0x4d
mov word [esp + 0x68], ax
pop eax
push 0x65
mov word [esp + 0x4a], cx
mov word [esp + 0x5e], cx
pop ecx
push 0x6d
mov word [esp + 0x6a], ax
pop eax
push 0x6f
mov word [esp + 0x6e], ax
pop eax
push 0x79
mov word [esp + 0x70], ax
pop eax
mov word [esp + 0x3e], di
mov word [esp + 0x48], bp
mov word [esp + 0x50], dx
mov word [esp + 0x54], bp
mov word [esp + 0x5c], di
mov word [esp + 0x60], bp
mov word [esp + 0x62], di
mov word [esp + 0x68], cx
mov word [esp + 0x6e], dx
mov word [esp + 0x70], ax
push 0x45
pop eax
mov word [esp + 0x72], ax
lea edi, [esp + 0x24]
push 0x76
pop eax
mov word [esp + 0x74], ax
push 0x6e
pop eax
mov word [esp + 0x78], ax
xor eax, eax
mov word [esp + 0x7c], ax
push 0x4c
pop eax
mov word [esp + 0x10], ax
mov word [esp + 0x12], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov word [esp + 0x7a], bp
xor ebp, ebp
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], ebp
stosd dword es:[edi], eax
mov word [esp + 0x76], cx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x2000000
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jns 0x4768d4
push ebp
push ebp
push 1
push 0xc0000264
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0xc]
mov edx, 0x527b68
xor eax, eax
lock cmpxchg dword [edx], ecx
pop edi
pop ebp
pop ebx
test eax, eax
je 0x4768f3
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x527b68]
jmp 0x4768fc
xor eax, eax
add esp, 0x74
ret
Function at 0x477084
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp byte [0x527b74], 0
push esi
mov esi, ecx
je 0x4770ac
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x47716e
push ebx
push edi
test esi, esi
je 0x47716a
xor ebx, ebx
cmp word [esi], bx
je 0x47716a
mov edi, 0x200
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x47716a
cmp ecx, edi
jae 0x47716a
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x404], ax
inc ecx
cmp ecx, edi
jae 0x47716a
movzx eax, word [esi]
test ax, ax
je 0x47711a
mov edx, eax
mov word [ebp + ecx*2 - 0x404], dx
inc ecx
cmp ecx, edi
jae 0x47716a
add esi, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x477100
xor eax, eax
mov word [ebp + ecx*2 - 0x404], ax
mov eax, dword [0x527b6c]
test eax, eax
je 0x477138
lea ecx, [ebp - 4]
push ecx
push ebx
call eax
mov esi, eax
jmp 0x47713d
mov esi, 0xc000000d
push 8
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test esi, esi
js 0x477166
mov ecx, dword [0x527b6c]
test ecx, ecx
je 0x477166
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call ecx
mov eax, edi
jmp 0x47716c
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4775a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddebd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x527b84], 0
mov esi, dword [ebp + 8]
jne 0x47761e
lea eax, [ebp - 0x28]
mov byte [0x527b84], 1
push eax
call fcn.00477680
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
jb 0x4775fb
mov eax, dword [ebp - 0x28]
push eax
call fcn.004774d0
add esp, 4
test eax, eax
je 0x47760f
mov byte [0x527b85], 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00407180
cmp byte [0x527b85], 0
je 0x477655
test esi, esi
je 0x477655
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477655
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push esi
call fcn.004772e0
xor eax, eax
add esp, 8
cmp dword [ebp - 0x2c], 4
sete al
jmp 0x477657
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
Function at 0x4786a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4786f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4786f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4786ea
cmp esi, edx
jae 0x4786f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4786d8
cmp esi, edx
jae 0x4786f9
cmp word [esi], 0
je 0x4786f9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x47faf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
jne 0x47fb18
call fcn.0047f6f0
test eax, eax
js 0x47fb25
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x480d70
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x518d70
push 0x4ace40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x520404]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x480dbf
mov dword [eax], ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x480e24
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x480e24
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x480e24
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x20], 0
je 0x480ed3
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x24], edi
push 0x10
push 1
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x480ea3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x480ea3
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480ea3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x480ea3
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x480e9b
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x480ea8
mov edi, 0xd
mov dword [ebp - 0x24], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x480ed8
mov edi, 0xd
test ebx, ebx
je 0x480ee3
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x480ef3
push eax
call ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x480efe
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x480f22
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480f40
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x518d90
push 0x4ace40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x520404]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x10], 2
jae 0x480fa6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x48100c
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x48100c
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x48100c
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4810ca
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4810c8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x4810c8
mov dword [ebp - 4], esi
movzx esi, word [edx]
mov dword [ebp - 0x28], esi
lea eax, [esi*2 + 4]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jbe 0x481070
shr ecx, 1
lea esi, [ecx - 4]
mov dword [ebp - 0x28], esi
mov dword [ebp + 0x10], 1
jmp 0x481077
mov dword [ebp + 0x10], 0
mov eax, esi
push eax
push edx
push dword [ebp + 0x14]
call fcn.004ac280
add esp, 0xc
mov eax, dword [str.FE2X]
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx], eax
cmp dword [ebp + 0x10], 0
je 0x48109a
mov word [ecx], si
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4810ca
xor esi, esi
test edi, edi
je 0x4810d5
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4810e2
push ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x4810ed
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486330
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x520404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
push 0x100
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.004a7d07
mov dword [edi], eax
mov dword [edi + 4], eax
add eax, 0x100
mov dword [edi + 8], eax
mov eax, dword [edi]
push 0x100
push 0
push eax
lea esi, [eax + 0x100]
call fcn.004ac800
add esp, 0x10
mov dword [edi + 4], esi
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 1
call fcn.004782d0
mov ecx, eax
test ecx, ecx
je 0x4864dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ebx
mov byte [ebp - 4], 2
call fcn.0047f730
test al, al
jne 0x4863fa
push ebx
lea ecx, [ebp - 0x10]
call fcn.004866b0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0x10]
mov dword [ebp - 0x18], ecx
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48641f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [edi]
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jl 0x486421
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], ecx
lea ebx, [ebx]
mov eax, ecx
mov esi, dword [edi]
cdq
idiv dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov bl, byte [esi + ecx]
movsx eax, byte [edx + eax]
add eax, dword [ebp - 0x10]
movzx edx, bl
add edx, eax
and edx, 0x800000ff
jns 0x48646a
dec edx
or edx, 0xffffff00
inc edx
mov ecx, dword [ebp - 0x14]
mov al, byte [esi + edx]
mov dword [ebp - 0x10], edx
mov byte [esi + ecx], al
inc ecx
mov byte [esi + edx], bl
mov dword [ebp - 0x14], ecx
cmp ecx, 0x100
jl 0x486440
lea ebx, [edi + 0xc]
cmp ebx, edi
je 0x4864c6
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [ebx]
sub esi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
sub eax, ecx
mov dword [ebp + 8], ecx
cmp esi, eax
jbe 0x4864b1
push esi
mov ecx, ebx
call fcn.00484050
mov ecx, dword [ebx]
mov dword [ebp + 8], ecx
push esi
push dword [ebp - 0x18]
push ecx
call fcn.004ac280
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00477ec0
int3
Function at 0x488d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df695
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x520404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x488d84
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.004782d0
mov ecx, eax
test ecx, ecx
je 0x488e7f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00477ee0
test al, al
jne 0x488df9
test esi, esi
jne 0x488dd6
xor ecx, ecx
jmp 0x488def
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x488de0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488de0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00478540
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0048c1a0
mov edx, dword [ebp - 0x24]
or esi, 0xffffffff
add esp, 0x18
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488e3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x488e5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
imul eax, dword [ebp - 0x14], 0x64
add eax, dword [ebp - 0x18]
imul eax, eax, 0x64
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x64
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00477ec0
int3
Function at 0x489250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df710
mov eax, dword fs:[0]
push eax
mov eax, 0x8028
call fcn.004a7f60
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x8028]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x8030], esi
push eax
mov dword [ebp - 0x8028], 0
push 0x4f8bb8
mov dword [ebp - 0x8018], 0
mov dword [ebp - 0x8014], 7
mov word [ebp - 0x8028], ax
call fcn.00408960
mov dword [ebp - 4], 0
test edi, edi
je 0x48947e
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4892e0
sub ecx, edx
sar ecx, 1
je 0x48947e
push 0x4000
lea eax, [ebp - 0x8010]
push 0
push eax
call fcn.004ac800
add esp, 0xc
mov dword [ebp - 0x8030], 0
lea eax, [ebp - 0x8030]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4893e8
cmp eax, 0x3fff
ja 0x4893e8
lea ecx, [ebp - 0x8010]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x489432
lea eax, [ebp - 0x8034]
mov dword [ebp - 0x802c], 0
push eax
lea eax, [ebp - 0x802c]
mov dword [ebp - 0x8034], 0
push eax
push 0x4f8b54
lea eax, [ebp - 0x8010]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x489432
push 0x4000
lea eax, [ebp - 0x4010]
push 0
push eax
call fcn.004ac800
mov ecx, dword [ebp - 0x802c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push 0xffffffffffffffff
lea eax, [ebp - 0x4010]
push 0x2000
push eax
call fcn.0048b7d0
xor eax, eax
lea ecx, [ebp - 0x8028]
add esp, 0x2c
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x4010]
push eax
call fcn.00408a70
lea eax, [ebp - 0x8028]
mov ecx, esi
push eax
call fcn.004084b0
mov edx, dword [ebp - 0x8014]
cmp edx, 8
jb 0x4894c7
mov ecx, dword [ebp - 0x8028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4894e4
jmp 0x489472
lea eax, [ebp - 0x8028]
mov ecx, esi
push eax
call fcn.004084b0
mov edx, dword [ebp - 0x8014]
cmp edx, 8
jb 0x4894c7
mov ecx, dword [ebp - 0x8028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4894e4
push edx
push ecx
call fcn.004a7d37
add esp, 8
jmp 0x4894c7
mov eax, dword [ebp - 0x8028]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x8024]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x8020]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x801c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x8018]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x8014]
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
call fcn.004af45f
int3