joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493772
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c672f
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 8
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x18], esi
jb 0x4937bf
mov eax, dword [ebx]
jmp 0x4937c1
mov eax, ebx
push eax
call fcn.00479c22
pop ecx
mov byte [esp + 0x17], al
test al, al
jne 0x493832
cmp dword [ebx + 0x14], 8
jb 0x4937da
mov eax, dword [ebx]
jmp 0x4937dc
mov eax, ebx
mov ecx, dword [0x4f546c]
push eax
push str.File__s_is_not_exist
push 3
call fcn.0047b708
add esp, 0xc
cmp byte [ebp + 0x10], 0
je 0x493846
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push ebx
call fcn.00409de0
lea ebx, [esp + 0x3c]
call fcn.00489607
mov ecx, dword [esp + 0x18]
and dword [esp + 0x70], 0
mov edx, dword [ecx]
push eax
push 3
call dword [edx + 0x24c]
mov ecx, ebx
call fcn.00489677
xor al, al
jmp 0x493922
push ebx
mov ecx, edi
call fcn.0047a621
pop ecx
test al, al
je 0x493846
mov al, 1
jmp 0x493922
cmp dword [edi + 0x14], 8
jb 0x493850
mov eax, dword [edi]
jmp 0x493852
mov eax, edi
push eax
call fcn.00479c22
pop ecx
test al, al
je 0x49386a
mov eax, dword [esi]
push 1
push edi
mov ecx, esi
call dword [eax + 0x134]
cmp byte [esp + 0x17], 0
je 0x49391e
push edi
mov ecx, esi
call fcn.0048f71d
push 8
pop esi
cmp dword [edi + 0x14], esi
jb 0x493889
mov ecx, dword [edi]
jmp 0x49388b
mov ecx, edi
cmp dword [ebx + 0x14], esi
jb 0x493894
mov eax, dword [ebx]
jmp 0x493896
mov eax, ebx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne byte [esp + 0x17]
cmp byte [esp + 0x17], 0
jne 0x49391e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], esi
jb 0x4938bd
mov eax, dword [edi]
jmp 0x4938bf
mov eax, edi
cmp dword [ebx + 0x14], esi
jb 0x4938c6
mov ebx, dword [ebx]
mov ecx, dword [0x4f546c]
push eax
push ebx
push str.Failed_to_copy_file__s_to__s
push 3
call fcn.0047b708
add esp, 0x10
cmp byte [ebp + 0x10], 0
je 0x49391e
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push edi
call fcn.00409de0
lea ebx, [esp + 0x5c]
call fcn.00489326
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x74], 1
mov edx, dword [ecx]
push 3
call dword [edx + 0x24c]
mov ecx, ebx
call fcn.00489396
jmp 0x49382b
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x493942
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c672f
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 8
pop esi
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0x14], esi
jb 0x49398f
mov eax, dword [ebx]
jmp 0x493991
mov eax, ebx
push eax
call fcn.00479c22
pop ecx
mov byte [esp + 0x17], al
test al, al
jne 0x493a05
cmp dword [ebx + 0x14], esi
jb 0x4939a9
mov eax, dword [ebx]
jmp 0x4939ab
mov eax, ebx
mov ecx, dword [0x4f546c]
push eax
push str.File__s_is_not_exist
push 3
call fcn.0047b708
add esp, 0xc
cmp byte [ebp + 0x10], 0
je 0x493aad
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push ebx
call fcn.00409de0
lea ebx, [esp + 0x3c]
call fcn.00489607
mov ecx, dword [esp + 0x18]
and dword [esp + 0x70], 0
mov edx, dword [ecx]
push eax
push 3
call dword [edx + 0x24c]
mov ecx, ebx
call fcn.00489677
xor al, al
jmp 0x493ab1
mov ecx, dword [esp + 0x18]
push edi
call fcn.0048f71d
cmp dword [edi + 0x14], esi
jb 0x493a18
mov ecx, dword [edi]
jmp 0x493a1a
mov ecx, edi
cmp dword [ebx + 0x14], esi
jb 0x493a23
mov eax, dword [ebx]
jmp 0x493a25
mov eax, ebx
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne byte [esp + 0x17]
cmp byte [esp + 0x17], 0
jne 0x493aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], esi
jb 0x493a4c
mov eax, dword [edi]
jmp 0x493a4e
mov eax, edi
cmp dword [ebx + 0x14], esi
jb 0x493a55
mov ebx, dword [ebx]
mov ecx, dword [0x4f546c]
push eax
push ebx
push str.Failed_to_move_file__s_to__s
push 3
call fcn.0047b708
add esp, 0x10
cmp byte [ebp + 0x10], 0
je 0x493aad
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push edi
call fcn.00409de0
lea ebx, [esp + 0x5c]
call fcn.00489326
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x74], 1
mov edx, dword [ecx]
push 3
call dword [edx + 0x24c]
mov ecx, ebx
call fcn.00489396
jmp 0x4939fe
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x493d2a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2c21
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push 0x24c
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
push esi
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0xc0], esi
call fcn.004a63e0
lea eax, [esp + 0x34]
push str..
push eax
call fcn.00408817
add esp, 0x14
mov dword [esp + 0x318], esi
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x493dc0
lea eax, [esp + 0x28]
lea ecx, [esp + 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
setne al
mov byte [esp + 0x16], 1
test al, al
je 0x493f2c
mov ebx, 0x4cb648
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.00408817
lea ecx, [esp + 0xe8]
push ecx
push eax
lea eax, [esp + 0x54]
mov byte [esp + 0x328], 1
call fcn.004088bd
add esp, 0x10
push 1
xor edi, edi
lea esi, [esp + 0x80]
mov byte [esp + 0x31c], 3
call fcn.0040a3ed
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x98]
push ebx
push eax
call fcn.00408817
lea ecx, [esp + 0xe8]
push ecx
push eax
lea eax, [esp + 0x70]
mov byte [esp + 0x328], 4
call fcn.004088bd
add esp, 0x10
push 1
xor edi, edi
lea esi, [esp + 0x9c]
mov byte [esp + 0x31c], 6
call fcn.0040a3ed
test byte [esp + 0xb4], 0x10
je 0x493ecb
lea eax, [esp + 0xe0]
push 0x4cdb48
push eax
call fcn.004a88ad
pop ecx
pop ecx
test eax, eax
je 0x493ee8
lea eax, [esp + 0xe0]
push 0x4cdb44
push eax
call fcn.004a88ad
pop ecx
pop ecx
test eax, eax
je 0x493ee8
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0x144]
jmp 0x493ee4
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0x138]
and byte [esp + 0x16], al
lea eax, [esp + 0xb4]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne byte [esp + 0x17]
push 1
xor edi, edi
lea esi, [esp + 0x64]
call fcn.0040a3ed
push 1
lea esi, [esp + 0x48]
mov byte [esp + 0x31c], 0
call fcn.0040a3ed
cmp byte [esp + 0x17], 0
jne 0x493deb
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
xor edi, edi
lea esi, [esp + 0x2c]
call fcn.0040a3ed
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x493f72
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push esi
jne 0x493fbc
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x493f89
mov eax, dword [esi]
jmp 0x493f8b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x493fb8
cmp dword [esi + 0x14], 8
jb 0x493f9e
mov esi, dword [esi]
mov ecx, dword [0x4f546c]
push esi
push str.Delete_File__s_Failed
push 3
call fcn.0047b708
add esp, 0xc
xor al, al
jmp 0x493fc5
mov al, 1
jmp 0x493fc5
push ecx
mov ecx, dword [ebp + 8]
call fcn.00494b28
pop esi
pop ebp
ret 8
Function at 0x494f69
Capabilities:
Create thread

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
cmp byte [esi + 0x25], bl
je 0x494f93
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 8], eax
push esi
push ebx
push esi
push 0x494fa9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 4], eax
pop ebx
ret
Function at 0x49593d
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x200
mov esi, ecx
mov dword [ebp - 0x1c], ebx
cmp edi, eax
ja 0x495aa7
je 0x4959ef
cmp edi, 0x21
ja 0x4959f9
je 0x4959ef
cmp edi, 7
jb 0x495afa
cmp edi, 8
jbe 0x4959ef
cmp edi, 0x14
je 0x495b2a
cmp edi, 0x1c
je 0x4959ef
cmp edi, 0x20
jne 0x495afa
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x495afe
push ebx
push dword [ebp + 0xc]
push edi
jmp 0x495b23
push ebx
push dword [ebp + 0xc]
push edi
jmp 0x495b25
cmp edi, 0x47
je 0x495a59
cmp edi, 0xff
jbe 0x495afa
mov ebx, 0x10e
cmp edi, 0x103
jbe 0x495a46
cmp edi, 0x107
jbe 0x495a43
cmp edi, ebx
jne 0x495afa
push 0x1980
xor edi, edi
push edi
push 0x10f
mov ecx, esi
call fcn.00495ba1
push edi
push edi
push ebx
jmp 0x495b23
sub edi, 4
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 0x10]
jne 0x495a27
push dword [ebp - 0x1c]
jmp 0x495b1f
test byte [ebx + 0x18], 1
jne 0x495a93
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov word [esi + 0x2c], ax
mov word [esi + 0x2e], cx
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov dword [esi + 0x20], ecx
mov ecx, esi
call dword [eax]
mov eax, esi
call fcn.00495b3d
push ebx
push dword [ebp + 0xc]
push 0x47
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x495b2a
mov eax, 0x208
cmp edi, eax
ja 0x495ade
je 0x495ad6
mov eax, edi
sub eax, 0x201
je 0x495aca
dec eax
je 0x495ad6
dec eax
je 0x4959ef
sub eax, 4
jne 0x495afa
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
push ebx
jmp 0x495b1f
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x495ad3
mov eax, edi
sub eax, 0x20a
je 0x495afe
sub eax, 0x97
je 0x4959ef
dec eax
dec eax
je 0x4959ef
xor al, al
jmp 0x495b2c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x1c]
shl eax, 0x10
or eax, dword [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.00495ba1
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a545d
leave
ret 0xc
Function at 0x497f30
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4987d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ecx, ecx
push eax
mov eax, dword [ebp + 0xc]
lea esi, [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00497f60
add esp, 4
mov ecx, esi
lea ebx, [esp + 0x64]
call fcn.00498010
xor esi, esi
xor ebx, ebx
movzx eax, byte [esp + esi + 0x64]
push eax
push str._02x
lea ecx, [edi + ebx]
push 3
push ecx
call fcn.004a645a
inc esi
add esp, 0x10
add ebx, eax
cmp esi, 0x10
jl 0x498832
mov ecx, dword [esp + 0x74]
pop esi
pop ebx
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret

Function at 0x498864
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x4c4c2f
call fcn.004ac37c
push 0x8c
call fcn.004a59a9
pop ecx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x49888f
push eax
call fcn.0049b48c
jmp 0x498891
xor eax, eax
or dword [ebp - 4], 0xffffffff
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x49891a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.004a481a
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov byte [edi + eax], bl
mov edx, dword [esi]
mov ecx, edi
call fcn.0049b558
push edi
test al, al
je 0x498906
call fcn.004a5452
pop ecx
mov al, 1
jmp 0x49891c
call fcn.004a5452
mov eax, dword [esi]
pop ecx
cmp eax, ebx
je 0x498918
push eax
call fcn.00498922
mov dword [esi], ebx
xor al, al
call fcn.004ac454
ret

Function at 0x498967
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x498999
push dword [ebp + 0xc]
lea esi, [ebp - 4]
push dword [ebp + 8]
call fcn.004989f8
pop ecx
pop ecx
cmp dword [ebp - 4], 0
jne 0x4989a3
xor al, al
jmp 0x4989cc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x499961
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, str.dbghelp.dll
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x49998e
xor al, al
jmp 0x499a13
push edi
call fcn.004a5f95
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4999e3
push eax
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4999e3
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x4cb648
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4999e3
mov esi, dword [ebp - 8]
push 0xd
pop ecx
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x48], 0xfeef04bd
sete byte [ebp - 1]
push dword [ebp - 0xc]
call fcn.004a5f5b
cmp byte [ebp - 1], 0
pop ecx
je 0x499987
mov eax, dword [ebp - 0x40]
shr eax, 0x10
mov dword [ebx], eax
movzx eax, word [ebp - 0x40]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
mov dword [ebx + 8], eax
movzx eax, word [ebp - 0x3c]
mov dword [ebx + 0xc], eax
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x499a17
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x499a59
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x6400000
jb 0x499a60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
add eax, 0xa
push eax
call fcn.004a481a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x499a52
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x499a99
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, esi
jmp 0x499a5b
Function at 0x499a9d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4f35e0]
cmp eax, 0xffffffff
jne 0x499c10
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [0x4f35e0], 0xfffffc18
mov dword [ebp - 0x118], 0x114
call fcn.004a63e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x499c0b
cmp dword [ebp - 0x108], 2
jne 0x499c0b
cmp dword [ebp - 0x114], 5
jne 0x499b9d
cmp dword [ebp - 0x110], 0
jne 0x499b28
xor eax, eax
inc eax
jmp 0x499bfd
cmp dword [ebp - 0x110], 1
jne 0x499b8f
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.004a6c39
add esp, 0xc
test eax, eax
jne 0x499b4f
push 3
jmp 0x499b9a
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.004a6c39
add esp, 0xc
test eax, eax
jne 0x499b6d
push 4
jmp 0x499b9a
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.004a6c39
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x499bfd
cmp dword [ebp - 0x110], 2
jne 0x499c0b
push 6
pop eax
jmp 0x499bfd
cmp dword [ebp - 0x114], 6
jne 0x499c04
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x499bbf
dec eax
je 0x499bbb
dec eax
jne 0x499c0b
push 0xb
jmp 0x499b9a
push 0xa
jmp 0x499b9a
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.004a6c39
add esp, 0xc
test eax, eax
jne 0x499bdd
push 8
jmp 0x499b9a
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.004a6c39
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x4f35e0], eax
jmp 0x499c10
mov eax, 0x3e8
jmp 0x499bfd
mov eax, dword [0x4f35e0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a545d
leave
ret

Function at 0x499d95
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4f5a78]
test eax, eax
jne 0x499de7
push str.SE_UID
push 4
push eax
push 4
call fcn.00499cb3
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4f5a78], eax
test eax, eax
jne 0x499de7
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
and eax, 0x7fffffff
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
call esi
test eax, eax
jne 0x499dfd
push dword [0x4f5a78]
call esi
pop esi
leave
ret
Function at 0x49a0d9
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x4e7710
call fcn.004b0920
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x49a141
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x49a141
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x49a141
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x49a141
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x49a14a
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.004b0965
ret
Function at 0x49a1c4
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x49a1e7
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x49a1ea
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x49a1fd
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x49a204
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x4f5500]
mov ecx, dword [0x4f54fc]
test eax, eax
jne 0x49a21e
test ecx, ecx
je 0x49a233
mov eax, ecx
mov dword [0x4f5500], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x49a233
cmp edx, dword [ebp - 4]
jb 0x49a233
cmp edx, dword [ebp - 8]
jbe 0x49a304
mov eax, ecx
test ecx, ecx
jmp 0x49a257
test eax, eax
je 0x49a252
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49a252
cmp ecx, dword [ebp - 4]
jb 0x49a252
cmp ecx, dword [ebp - 8]
jbe 0x49a304
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x4f5500], eax
jne 0x49a239
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x49a38e
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x49a284
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49a38e
cmp dword [ebp - 0x30], ebx
jne 0x49a2a3
cmp dword [ebp - 0x34], ebx
jae 0x49a2b6
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x49a272
jmp 0x49a38e
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4f5500], eax
test eax, eax
je 0x49a38e
mov ecx, dword [0x4f54fc]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x4f54fc], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x49a2f6
mov dword [eax + 8], edx
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 4]
jb 0x49a393
cmp edx, dword [ebp - 8]
ja 0x49a393
mov ecx, dword [edx + 0x18]
mov dword [eax + 8], ecx
push 8
mov eax, 0xcccccccc
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x49a395
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x49a33d
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49a393
cmp dword [ebp - 0x14], ebx
jne 0x49a388
cmp dword [ebp - 0x18], ebx
jb 0x49a388
movzx ecx, si
test ecx, ecx
je 0x49a36c
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4f5500], eax
test eax, eax
jne 0x49a2d2
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x49a32b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret