joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432a7f
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0x154
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0xd0], eax
and dword [ebp - 0x58], 0
push esi
push edi
mov edi, ecx
call fcn.004057df
xor esi, esi
lea eax, [ebp - 0x44]
inc esi
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x44], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
sub eax, 0
mov dword [ebp - 0x4c], ecx
je 0x432b2c
dec eax
je 0x432b21
dec eax
jne 0x432b33
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x5c], 2
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x80]
dec eax
push 4
pop ecx
je 0x432b14
dec eax
je 0x432b0b
dec eax
jne 0x432b17
mov dword [ebp - 0x5c], 5
jmp 0x432b17
mov dword [ebp - 0x5c], 3
jmp 0x432b17
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x40], ecx
jb 0x432b33
mov dword [ebp - 0x58], esi
jmp 0x432b33
movzx eax, cx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], eax
jmp 0x432b33
mov dword [ebp - 0x5c], 7
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.004057db
mov ecx, eax
call fcn.00435dd9
mov ecx, dword [ebp + 0xd0]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004646c1
add ebp, 0xd4
leave
ret

Function at 0x432c9d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x432cd4
mov edx, dword [ecx + 0xd8]
mov ecx, dword [ebp + 8]
push esi
movzx eax, byte [ecx]
xor eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x10]
dec dword [ebp + 0xc]
and eax, 0xff
mov eax, dword [edx + eax*4]
shr esi, 8
xor esi, eax
inc ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], esi
jne 0x432cb0
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc

Function at 0x433be5
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x433bff
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x433c10
push 0xd
pop eax
jmp 0x433c3d
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x433c13
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x434314
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x4a48d4
call fcn.004646d0
mov eax, dword [ebp + 0x20c]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
lea ecx, [ebp - 0x14]
call fcn.004014e0
mov ebx, eax
cmp ebx, esi
je 0x43439c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401490
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x204
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4343b4
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00434314
cmp eax, esi
jne 0x4343e7
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call ebx
test eax, eax
je 0x4343a4
lea ecx, [ebp - 0x14]
call fcn.00401490
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401490
mov eax, esi
jmp 0x434377
Function at 0x4375fe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
je 0x437643
mov eax, dword [ebp + 8]
test eax, eax
je 0x437618
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x437679
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caebc
lea eax, [ebp - 0x58]
push eax
call fcn.004647da
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x437679
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x437679
push 1
push eax
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.0043731f
push 0x4caeac
lea eax, [ebp - 0x54]
jmp 0x43763d
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x437ddc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x437df0
xor eax, eax
inc eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x437e24
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e65
test al, al
jne 0x437e53
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caebc
lea eax, [ebp - 0x58]
push eax
call fcn.004647da
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437e53
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caeac
lea eax, [ebp - 0x54]
jmp 0x437e1e
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x437e5b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x437e6f
push 8
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x437ea3
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e65
test al, al
jne 0x437ed2
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caebc
lea eax, [ebp - 0x58]
push eax
call fcn.004647da
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437ed2
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caeac
lea eax, [ebp - 0x54]
jmp 0x437e9d
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x438983
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x834
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x834], eax
push 0xa4
mov eax, 0x4a581d
call fcn.004646d0
xor eax, eax
push 0x7fe
mov word [ebp + 0x34], ax
xor ebx, ebx
lea eax, [ebp + 0x36]
push ebx
push eax
mov esi, ecx
call fcn.00465a60
add esp, 0xc
push 0x400
lea eax, [ebp + 0x34]
push eax
push 0x4bde80
push str.ClickOncePackage
push str.Startup
lea ecx, [esi + 0x28]
call fcn.00409ec2
cmp word [ebp + 0x34], bx
jne 0x4389f3
xor eax, eax
jmp 0x438b0d
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0043777c
mov dword [ebp - 4], ebx
cmp dword [eax + 0x1c], 8
jb 0x438a0c
mov eax, dword [eax + 8]
jmp 0x438a0f
add eax, 8
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0xd]
push ecx
push eax
lea ecx, [ebp]
call fcn.004018b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004016d0
push esi
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov byte [ebp - 4], 3
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp]
call fcn.00401c10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.00401950
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp]
call fcn.00401750
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.00401670
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00401670
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00401670
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
push 4
jae 0x438aa7
lea eax, [ebp + 8]
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
lea edx, [ebp - 0xd]
push edx
push eax
call fcn.004096ba
mov byte [ebp - 4], 6
mov byte [ebp - 4], 2
call fcn.0044cef2
add esp, 0x38
cmp al, bl
jne 0x438ada
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
call fcn.004026b0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x438ae6
lea eax, [ebp + 8]
push esi
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
neg esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00401670
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x834]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x838
leave
ret
Function at 0x43f75b
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x43f777
mov ecx, esi
call fcn.0043f5ff
pop esi
ret 4

Function at 0x43ffbe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
jle 0x44003d
push esi
mov esi, 0x138
push ebx
push esi
call fcn.00465977
push esi
mov ebx, eax
push 0
push ebx
call fcn.00465a60
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [edi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44003b
cmp dword [ebp - 8], 0
je 0x44003b
push ebx
lea ecx, [edi + 0x228]
call fcn.0043feb2
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x20c]
call fcn.0043fb00
test eax, eax
je 0x44003b
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x43ffd7
pop ebx
pop esi
pop edi
leave
ret 4
Function at 0x440042
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3c8]
sub esp, 0x448
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x3c4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3d0]
push 0x2e
xor esi, esi
lea eax, [ebp - 0x6c]
push esi
push eax
mov ebx, ecx
call fcn.00465a60
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
mov ecx, ebx
call fcn.0043fca6
test eax, eax
je 0x4400bd
push esi
push 0x80
push 3
push esi
push 3
lea eax, [ebx + 4]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x74], edi
cmp edi, 0xffffffff
jne 0x4400d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x21c], eax
xor eax, eax
mov ecx, dword [ebp + 0x3c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646c1
add ebp, 0x3c8
leave
ret 4
lea ecx, [ebx + 0x228]
call fcn.0043fb96
cmp eax, 1
jbe 0x440131
mov eax, dword [ebx + 0x218]
push 1
push esi
push eax
push edi
mov ecx, ebx
call fcn.0043fb00
test eax, eax
je 0x4400bd
push dword [0x4d5854]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebx + 0x228]
call fcn.0043fb96
dec eax
push esi
mov word [ebp - 0x5e], ax
lea eax, [ebp - 0x78]
push eax
push 0x2e
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x70]
push esi
add eax, 0xfffffec8
push esi
push eax
push edi
mov ecx, ebx
mov dword [ebp - 0x80], eax
call fcn.0043fb00
test eax, eax
je 0x4400bd
mov eax, dword [ebp - 0x7c]
mov edi, dword [eax + 0x10c]
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x70]
add ecx, edi
cmp ecx, eax
jne 0x4401a3
lea ecx, [ebx + 0x228]
call fcn.0043fb96
cmp eax, 1
jne 0x440195
push esi
push esi
push dword [ebx + 0x218]
mov ecx, ebx
push dword [ebp - 0x74]
call fcn.0043fb00
test eax, eax
je 0x4400bd
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x440232
mov eax, dword [ebp - 0x80]
push esi
push 0x80
push 3
push esi
push 3
lea edi, [edi + eax + 0x138]
push SysReAllocString
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x4400b1
push 1
push esi
push edi
push eax
mov ecx, ebx
call fcn.0043fb00
test eax, eax
je 0x4400bd
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x440209
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x78], esi
je 0x440220
push esi
lea eax, [ebp - 0x78]
push eax
push 0x400
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x4401ef
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x7c]
mov ecx, ebx
call fcn.0043fdf2
xor eax, eax
inc eax
jmp 0x4400bf
Function at 0x440295
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x54
mov eax, 0x4a6fcf
call fcn.004646d0
mov esi, ecx
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov edi, dword [esi + 0xa8]
cmp edi, eax
jne 0x4402d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fe64
xor eax, eax
call fcn.004647a8
ret
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4402e8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
push str..debug
call fcn.0043fa98
pop ecx
test eax, eax
je 0x44030a
cmp dword [eax + 0xc], edi
jne 0x44030a
mov edi, dword [esi + 0xac]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], edi
jmp 0x440355
push str..rdata
call fcn.0043fa98
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x44032c
push str..text
call fcn.0043fa98
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4402bd
mov esi, dword [esi + 0xac]
mov eax, esi
push 0x1c
mov dword [ebp - 0x20], esi
xor edx, edx
pop esi
div esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4402bd
sub edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edi]
mov edi, dword [ebp - 0x20]
lea eax, [ecx + ebx]
mov esi, ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x4403bc
cmp dword [ebp + 8], 0
je 0x4403bc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, esi
div dword [ebp - 0x44]
imul eax, dword [ebp - 0x44]
mov ebx, eax
lea eax, [edx + edi]
push eax
push ebx
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4403ad
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fe64
mov eax, esi
jmp 0x4402cb
push edi
lea ecx, [ebp - 0x10]
call fcn.00440257
sub edi, ebx
add edi, esi
mov eax, edi
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x4403db
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0xc]
jbe 0x4403d5
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x4403c6
mov esi, dword [ebp - 0x14]
jmp 0x44039a
Function at 0x440420
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x38
mov eax, 0x4a7002
call fcn.004646d0
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x18]
call fcn.004174d9
cmp dword [ebp - 0x18], 0xffffffff
jne 0x44049d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043fe7e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00402da0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402da0
mov eax, esi
call fcn.004647a8
ret
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004174d9
cmp dword [ebp - 0x10], ebx
je 0x44046a
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x40]
push eax
push ebx
push ebx
push 4
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x14]
call fcn.00440276
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x44046a
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x44056e
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x440564
cmp dword [esi], 0x4550
jne 0x440564
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], eax
jae 0x440571
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x20]
push ebx
push ebx
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x14]
call fcn.00440276
mov edi, dword [ebp - 0x14]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x440564
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x440564
cmp dword [esi], 0x4550
je 0x440571
mov esi, 0xc1
jmp 0x440472
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x44057d
mov dword [eax], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x44058c
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x44059b
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x4405a4
mov dword [eax], esi
xor esi, esi
jmp 0x440472
Function at 0x44063f
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x4a705e
call fcn.004646d0
mov esi, ecx
mov dword [ebp - 0x18], esi
or dword [esi + 0x220], 0xffffffff
xor edi, edi
lea eax, [esi + 0x228]
mov dword [esi], vtable.STREAM.0
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov byte [esi + 0x214], 1
mov byte [esi + 0x215], 1
mov byte [esi + 0x216], 1
mov dword [esi + 0x21c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
call fcn.004405ab
pop ecx
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20c], eax
cmp eax, 0xffffffff
jne 0x4406e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
jmp 0x4407ea
push 0x2e
mov dword [esi + 0x210], 1
call fcn.00465977
push 0x2e
push edi
push eax
mov dword [esi + 0x224], eax
call fcn.00465a60
add esp, 0x10
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0043fb00
test eax, eax
je 0x4407ea
push edi
lea eax, [ebp - 0x14]
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4407ea
cmp dword [ebp - 0x14], edi
je 0x4407ea
mov ecx, esi
call fcn.0043fae8
test eax, eax
je 0x440770
mov eax, dword [esi + 0x224]
movzx eax, word [eax + 0xe]
cmp ax, di
jne 0x4407df
push edi
push ebx
call fcn.004405ab
pop ecx
pop ecx
cmp eax, dword [esi + 0x218]
jbe 0x440787
mov dword [esi + 0x218], eax
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0043fb00
test eax, eax
je 0x4407ea
push edi
lea eax, [ebp - 0x10]
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4407ea
cmp dword [ebp - 0x14], edi
je 0x4407ea
mov ecx, esi
call fcn.0043fae8
test eax, eax
je 0x4407ea
mov eax, dword [esi + 0x224]
movzx eax, word [eax + 0xe]
cmp ax, di
je 0x4407ea
movzx eax, ax
push eax
mov ecx, esi
call fcn.0043ffbe
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004647a8
ret 4
Function at 0x4408e1
Capabilities:
Get common file path

Disassembly:
push 0x4c
mov eax, 0x4a7119
call fcn.00464739
push 1
lea eax, [ebp - 0x45]
mov edi, ecx
push eax
mov dword [ebp - 0x58], edi
call fcn.00401f90
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401f90
mov byte [ebp - 4], 1
mov esi, 0x104
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b2f1
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407803
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0040b14b
push esi
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.0040b2f1
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407803
cmp dword [ebp - 0x28], 8
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
jae 0x440972
lea ecx, [ebp - 0x3c]
push eax
push 0
push 0x4b2678
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0040b14b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004016d0
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004647bc
ret
Function at 0x4412a3
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
mov eax, dword [ebp + 0x1e0]
mov ecx, dword [ebp + 0x1e4]
and dword [ebp - 0x4c], 0
push ebx
mov ebx, dword [ebp + 0x1dc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, 0x4bde80
push esi
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], ecx
call edi
push esi
push dword [ebp - 0x44]
call edi
lea eax, [ebp - 0x4c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x441443
push esi
call fcn.004679f6
push esi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00465a60
add esp, 0x10
push dword [ebp - 0x40]
push esi
xor esi, esi
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44143a
push 0x34
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x38], eax
call fcn.00465a60
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x4ae4fc
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x441388
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push esi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
call fcn.00465a60
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44143a
mov esi, dword [ebp - 0x3c]
xor eax, eax
push 0x1fe
mov word [ebp - 0x30], ax
xor ebx, ebx
lea eax, [ebp - 0x2e]
push ebx
push eax
shr esi, 2
call fcn.00465a60
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x48], eax
test esi, esi
jle 0x44143a
and dword [ebp - 0x34], 0
test ebx, ebx
jle 0x4413ec
add dword [ebp - 0x48], 4
push 4
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push eax
call fcn.00465b50
movzx eax, word [ebp - 0x34]
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
test ebx, ebx
jne 0x44141a
push 0x4b0d4c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x44142c
push dword [ebp - 0x44]
push 0x4b2754
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
call edi
inc ebx
cmp ebx, esi
jl 0x4413e0
push dword [ebp - 0x40]
call fcn.00467ac0
pop ecx
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646c1
add ebp, 0x1d4
leave
ret