joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483870
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4def78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x526f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push edi
push 3
push edi
push 7
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48391a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
push edx
push str.AddFileName:_cannot_open__s__LE_d
push ecx
call fcn.0046da40
add esp, 0x10
call fcn.00483040
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x483904
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0x10]
cmp ebx, edi
mov dword [ebp - 0x18], eax
jl 0x4839a0
jg 0x48393b
cmp eax, edi
jbe 0x4839a0
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x48397e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 0x14], esp
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.AddFileName:_cannot_map__s__LE_d
push edx
call fcn.0046da40
add esp, 0x10
call fcn.00483040
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4838de
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push edi
push ecx
call fcn.004832f0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4839c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 0x14], esp
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.AddFileName:_adding_0_bytes_file__s__LE_d
push edx
call fcn.0046da40
add esp, 0x10
call fcn.00483040
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4839f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x484380
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [0x52cc20]
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp ecx, ebx
jne 0x4843c8
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x52cc04
call esi
mov ecx, dword [0x52cc20]
cmp ecx, ebx
jne 0x4843c8
push 0x52cc04
call esi
mov ecx, dword [0x52cc20]
xor edx, edx
mov eax, 0x400000
div ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], ebx
mov esi, eax
imul esi, ecx
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x484514
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x1c], 1
lea ebx, [ebx]
xor edx, edx
cmp edx, ecx
jg 0x48442e
jl 0x48442c
cmp esi, edi
jae 0x48442e
mov edi, esi
mov ecx, dword [esp + 0x2c]
push edi
push ebx
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4844be
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push edi
push eax
push ebx
push esi
push esi
mov dword [esp + 0x30], 0
call edx
xor eax, eax
cmp dword [esp + 0x24], eax
jl 0x484486
jg 0x484478
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0xc]
jbe 0x484486
mov edx, dword [esp + 0xc]
sub dword [esp + 0x20], edx
sbb dword [esp + 0x24], eax
jmp 0x484490
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
add ebx, dword [esp + 0xc]
push esi
adc dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x24]
test ecx, ecx
jl 0x4844fa
mov edi, dword [esp + 0x20]
jg 0x4844b1
test edi, edi
jbe 0x4844fa
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x484420
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
push str._CVfcEncDec::EncryptFile:_mapping_failed__LE_d
push ecx
call fcn.0046da40
add esp, 0xc
call fcn.00482ca0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x484760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x18]
test edi, edi
jbe 0x484794
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
sub ecx, eax
mov esi, edi
mov dl, byte [ecx + eax]
xor dl, 0x7b
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x484776
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edi
mov eax, 1
pop edi
pop ebp
ret 0x18

Function at 0x4847b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [edi], ecx
jbe 0x4847d5
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, 0x7b
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [edi]
jb 0x4847c6
pop esi
mov eax, dword [edi]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, 1
pop edi
pop ebp
ret 0x18

Function at 0x4848d0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, 0x400000
cmp edi, ebx
ja 0x4848f6
jb 0x4848ee
cmp dword [ebp + 0xc], eax
jae 0x4848f6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
jmp 0x4848f9
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
cmp ecx, ebx
jne 0x484917
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x484958
mov esi, dword [ecx + 0x3c]
mov eax, esi
cdq
cmp edx, edi
ja 0x484958
jb 0x484932
cmp eax, dword [ebp + 0xc]
jae 0x484958
cmp dword [esi + ecx], 0x4550
jne 0x484958
mov edx, dword [esi + ecx + 0x54]
add edx, dword [esi + ecx + 0x24]
mov eax, dword [ebp + 0x14]
add edx, dword [esi + ecx + 0x20]
add edx, dword [esi + ecx + 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], edx
mov ebx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc070
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x526f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x50d6d8
call fcn.0046bc20
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push str.PeContainer:
push edx
call fcn.00424a90
push 0x4ec4c4
mov byte [ebp - 4], 1
call fcn.004bbaea
add esp, 0x18
push eax
push 0x4ec4c4
lea ecx, [ebp - 0x10]
call fcn.00425b29
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484a06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x484f90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
xor edi, edi
push ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edx
mov edx, dword [esi]
push ecx
push edx
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x484fe3
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x485007
or ecx, eax
or eax, eax
jmp 0x48500e
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, edx
push edi
mov edx, ecx
push edx
push eax
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0x10], edi
mov dword [esi + 8], ecx
mov ecx, dword [esi]
setne al
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x485230
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [edi + 0x80]
push ebx
push esi
lea esi, [edi + 0x70]
mov dword [ebp - 4], eax
cmp dword [esi + 0xc], eax
jbe 0x48524e
call fcn.004bbc61
mov ebx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
cmp ebx, dword [esi + 0x10]
jbe 0x485260
call fcn.004bbc61
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
push ecx
push edx
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00487930
xor ebx, ebx
cmp dword [edi + 0x10], ebx
je 0x48528a
mov ecx, dword [edi + 0x8c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x48529a
push eax
call esi
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x8c]
push ebx
push ebx
neg edx
push 3
sbb edx, edx
push ebx
and edx, 0x40000000
push 3
add edx, 0x80000000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x485373
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4852ef
or eax, eax
or ecx, 0xffffffff
jmp 0x4852f2
mov ecx, dword [ebp - 4]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [edi + 0xc], ecx
cmp eax, ebx
je 0x485309
push eax
call esi
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x48531a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x20], ebx
mov edx, dword [edi + 8]
push ebx
push edx
mov eax, edx
mov edx, dword [edi + 0xc]
mov cl, 0x20
call fcn.004d2e90
mov ecx, dword [edi]
push eax
xor eax, eax
cmp dword [edi + 0x10], ebx
setne al
lea eax, [eax + eax + 2]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x485355
mov eax, 9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x68]
cmp dword [edi + 0x3c], ebx
je 0x48537e
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push esi
push edx
push ecx
push eax
call fcn.004848d0
add esp, 0x10
test eax, eax
jne 0x485383
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov edx, dword [edi + 0xc]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
cmp edx, dword [esi + 4]
jb 0x4853c4
ja 0x4853a6
mov eax, dword [edi + 8]
cmp eax, dword [esi]
jbe 0x4853c4
mov ecx, edi
call fcn.004859d0
test eax, eax
jne 0x4853c4
cmp dword [edi + 0x10], ebx
je 0x4853c4
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov esi, edi
call fcn.00484f90
pop esi
mov dword [edi + 0x38], ebx
mov dword [edi + 0x88], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487530
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48758c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4875a6
or eax, eax
or ecx, 0xffffffff
jmp 0x4875a9
mov ecx, dword [ebp - 4]
push ebx
push eax
push ecx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebx
jne 0x4875c3
mov ebx, 8
jmp 0x48763b
lea edx, [ebp - 4]
push edx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4875dd
or eax, eax
or ecx, 0xffffffff
jmp 0x4875e0
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push edi
call fcn.004848d0
add esp, 0x10
test eax, eax
je 0x48762f
mov ebx, dword [ebp - 0x10]
mov eax, ebx
or eax, dword [ebp - 0xc]
je 0x48762f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 8]
push edx
push ebx
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x487624
mov ebx, 0xc
jmp 0x48763b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x48763b
push edi
mov ebx, 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487661
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de22a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x526f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 0x50de2c
xor esi, esi
push eax
mov dword [ebp - 0x18], esi
call fcn.004c0388
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x489ad8
mov ecx, dword [0x52d0c4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
cmp ecx, esi
je 0x489ac6
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push esi
push ebx
call fcn.004c0b0c
add esp, 0xc
push ebx
call fcn.004c09dd
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], esi
cmp edi, esi
jne 0x489b29
push ebx
call fcn.004c0c08
mov edx, dword [0x52d0c4]
mov eax, dword [ebp + 8]
mov ecx, edx
add esp, 4
mov dword [eax], edx
cmp ecx, esi
je 0x489c49
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push esi
push ebx
call fcn.004c0b0c
lea eax, [edi + 4]
add esp, 0xc
push eax
call fcn.004bc352
add esp, 4
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004c063f
push ebx
mov edi, eax
call fcn.004c0c08
add esp, 0x14
push 0
push edi
push esi
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test al, al
jne 0x489bbb
cmp byte [esi], 0xef
mov eax, 2
jne 0x489b96
cmp byte [esi + 1], 0xbb
jne 0x489b96
cmp byte [esi + 2], 0xbf
jne 0x489b96
lea ecx, [eax + 1]
lea eax, [ecx - 2]
jmp 0x489b99
mov ecx, dword [ebp - 0x10]
push eax
lea ebx, [esi + ecx]
call fcn.00488220
add esp, 4
push esi
mov edi, eax
call fcn.004bc235
add esp, 4
mov esi, edi
mov dword [ebp - 0x10], 0
jmp 0x489bdf
mov al, byte [esi]
cmp al, 0xef
jne 0x489bce
cmp byte [esi + 1], 0xff
jne 0x489bce
mov dword [ebp - 0x10], 2
cmp al, 0xff
jne 0x489bdf
cmp byte [esi + 1], 0xfe
jne 0x489bdf
mov dword [ebp - 0x10], 2
test esi, esi
jne 0x489c07
mov ecx, dword [0x52d0c4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x489c49
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0
lea ecx, [esi + edx]
push eax
call fcn.00489890
push esi
call fcn.004bc235
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x489c30
inc dword [eax + 0x30]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x18], 1
call fcn.0048a320
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d5b0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.ntdll.dll
call esi
mov edi, eax
test edi, edi
je 0x48d649
push str.GetFinalPathNameByHandleW
push str.Kernel32.dll
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtQueryObject
push edi
mov dword [0x52cc64], eax
call esi
push str.NtOpenSymbolicLinkObject
push edi
mov dword [0x52cc88], eax
call esi
push str.NtQuerySymbolicLinkObject
push edi
mov dword [0x52cc8c], eax
call esi
push str.ZwClose
push edi
mov dword [0x52cc90], eax
call esi
push 0x68
push 0xff
push 0x52d138
mov dword [0x52cc84], eax
call fcn.004bc420
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x52d120
call esi
push 0x52d108
call esi
mov dword [0x52cc60], 1
pop edi
pop esi
ret
Function at 0x48f7c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d96c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x526f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jbe 0x48f861
push esi
call fcn.004accdc
mov edi, eax
add esp, 4
test edi, edi
je 0x48f861
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x48f858
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004accd1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f887
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4903b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 8]
sub esp, 8
test eax, eax
je 0x4904a3
mov ecx, dword [edi + 0x10]
push ebx
push esi
push 1
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [edi]
mov eax, dword [edi + 4]
push 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, esi
mov dword [ebp - 8], esi
call fcn.0048fe10
mov ebx, eax
mov eax, esi
mov dword [ebp - 4], 0
call fcn.0048fdf0
xor edx, edx
cmp dx, word [eax]
jae 0x49048c
mov esi, dword [ebp - 8]
lea ebx, [ebx]
cmp dword [ebp - 4], 0
jne 0x49042e
mov eax, dword [edi + 8]
push 5
push eax
jmp 0x490431
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x49048c
lea ecx, [ecx]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [ebx + 0x14]
je 0x49045d
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x490440
jmp 0x49048c
test esi, esi
je 0x49048c
mov ecx, dword [edi + 0x10]
push 1
push ecx
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
call fcn.0048feb0
inc dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.0048fdf0
movzx edx, word [eax]
cmp dword [ebp - 4], edx
jl 0x490420
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov esp, ebp
pop ebp
ret