joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4151dc
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
and dword [ebx], 0
and byte [ebp + 0xf], 0
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.0041f940
pop ecx
test eax, eax
pop ecx
jge 0x415247
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str.__s___q
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, 0x43c0f0
jmp 0x415296
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00401046
mov ecx, eax
call fcn.0041c5a1
push dword [ebp + 8]
test eax, eax
je 0x41527c
lea eax, [ebp - 0x108]
push str.__s___quiet__norestart
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, str._quiet__norestart
jmp 0x415296
lea eax, [ebp - 0x108]
push str.__s___c:_msiinst__delayrebootq_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, str._c:_msiinst__delayrebootq_
mov ecx, esi
call fcn.00401046
mov ecx, eax
call fcn.0041c5a1
test eax, eax
je 0x4152bd
mov ecx, esi
call fcn.00401046
push eax
push 1
push edi
push dword [ebp + 8]
call fcn.00420169
jmp 0x4152cb
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0041fa4a
mov esi, eax
test esi, esi
je 0x415389
cmp esi, 0xbc2
je 0x4152f8
push 0
push esi
mov dword [0x443124], 0x484
call fcn.0041edc3
pop ecx
mov eax, esi
pop ecx
jmp 0x41538b
cmp byte [ebp + 0xf], 0
je 0x415383
and dword [ebp + 8], 0
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebx], 2
call fcn.0040f9b2
test eax, eax
jne 0x415372
and byte [ebp - 0x20c], al
push 0x40
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.InstallerLocation
mov dword [ebp + 0xc], 0x104
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], 0
je 0x415389
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415389
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41667d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x432b1e
call fcn.00425dc8
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x43447c
mov esi, 0x434474
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.00401581
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.00416884
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004016f0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x416706
lea ecx, [ebp - 0x10]
call fcn.0040a986
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.0040191f
cmp byte [ebp + 0xf], 0
je 0x41683c
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x416786
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401581
mov dword [ebp - 0x18], 1
jmp 0x416858
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.004014ff
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040b9af
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040191f
mov eax, 0x43c1f8
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x440144
jne 0x4167cf
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040ba8c
mov eax, 0x43c1f4
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x4167f8
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040ba8c
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.004175b7
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0040191f
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040191f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040b9f9
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040191f
cmp dword [ebp - 0x10], 0
je 0x416873
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x418f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x418f84
push 0x28
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x418fb8
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00423045
test al, al
jne 0x418feb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411e87
lea eax, [ebp - 0x4c]
push 0x437450
push eax
call fcn.00427397
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418feb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411cb4
lea eax, [ebp - 0x48]
push 0x437440
push eax
call fcn.00427397
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x418ff3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x419007
push 0x50
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41903b
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00423045
test al, al
jne 0x41906e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411e87
lea eax, [ebp - 0x4c]
push 0x437450
push eax
call fcn.00427397
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41906e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411cb4
lea eax, [ebp - 0x48]
push 0x437440
push eax
call fcn.00427397
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x4196c3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040104a
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x419773
dec eax
je 0x419768
dec eax
jne 0x41977a
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x419758
dec eax
je 0x41974f
dec eax
jne 0x41975b
mov dword [ebp - 0x18], 5
jmp 0x41975b
mov dword [ebp - 0x18], 3
jmp 0x41975b
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x41977a
mov dword [ebp - 0x14], esi
jmp 0x41977a
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x41977a
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0041aa9a
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x419b4f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x419b89
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x419b67
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x41bd31
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41bde7
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0041ef20
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x41bdd7
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41bd93
lea eax, [ebp - 0x118]
push 0x43b278
push eax
call fcn.004278d0
pop ecx
test eax, eax
pop ecx
jne 0x41bdaf
mov eax, 0x486
push eax
mov dword [0x443124], eax
call fcn.0041eea9
pop ecx
push dword [0x443124]
call fcn.004277d0
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.00420106
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8
Function at 0x41c1dc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x44d4]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x41c334
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x44d4]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x41c25f
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x41c301
push 0xd0
call fcn.00425de7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41c301
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x44d4]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x4094], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x41c305
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x41c32d
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x4094], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x4094]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41c687
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x433272
call fcn.00425dc8
sub esp, 0x4a4
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4af]
mov byte [ebp - 0x4b0], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b0]
lea ecx, [esi + 0x4020]
push eax
push 0x440140
push str.ClickOncePackage
push str.Startup
call fcn.00402344
cmp byte [ebp - 0x4b0], bl
jne 0x41c6eb
xor eax, eax
jmp 0x41c7eb
push 1
lea eax, [ebp - 0xe]
pop edi
mov ecx, esi
push edi
push eax
call fcn.0041ab40
push eax
lea ecx, [ebp - 0x38]
call fcn.004014ff
lea eax, [ebp - 0xd]
push edi
push eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.004014ff
push ebx
lea eax, [ebp - 0x88]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040b1c2
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.0040b0e0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040b9af
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.0040191f
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.0040191f
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.0040191f
lea ecx, [ebp - 0x38]
call fcn.004016f0
push eax
call fcn.0041f832
test eax, eax
jne 0x41c7bc
lea eax, [ebp - 0xd]
push edi
push eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x60]
call fcn.004014ff
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.0040b9af
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.0040191f
push edi
push ebx
push ebx
lea ecx, [ebp - 0x38]
call fcn.004016f0
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x38]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.0040191f
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e33f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x433402
call fcn.00425dc8
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x120]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov dword [esi + 0x118], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x434f24
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041e8f8
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x41e3d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x41e456
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00425de7
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.00426630
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.0041eb86
test eax, eax
je 0x41e456
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x11c]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e456
cmp dword [ebp - 0x10], edi
je 0x41e456
mov ecx, esi
call fcn.0041e4f2
test eax, eax
je 0x41e456
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x41e456
movzx eax, ax
push eax
mov ecx, esi
call fcn.0041e874
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41e874
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 ebx
push esi
push edi
mov edi, ecx
jle 0x41e8f1
mov esi, 0x138
push esi
call fcn.00425de7
mov ebx, eax
push esi
push 0
push ebx
call fcn.00426630
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e8f1
cmp dword [ebp - 8], 0
je 0x41e8f1
push ebx
lea ecx, [edi + 0x120]
call fcn.0041ebc7
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0041eb86
test eax, eax
je 0x41e8f1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x41e88d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e8f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push SysReAllocStringLen
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41e93d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x41e98c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.0041eb86
test eax, eax
je 0x41e98c
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.0041eb86
test eax, eax
jne 0x41e990
xor eax, eax
jmp 0x41e9e2
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x41e9cc
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x41e9b6
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x41e99c
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0041e9e7
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e9e7
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x41ea13
xor eax, eax
jmp 0x41eac3
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x41eab8
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x41eaad
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.0041eac8
cmp eax, ebx
je 0x41ea63
cmp dword [eax + 0xc], edi
jne 0x41ea63
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x41ea94
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.0041eac8
mov edi, eax
cmp edi, ebx
je 0x41eaad
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x41eaad
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x41eaa8
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x41ea9e
jmp 0x41eaab
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x41f05a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x440140
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call fcn.00425900
push esi
push dword [ebp + 0x10]
call fcn.00425900
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x41f1e5
push edi
push esi
call fcn.004263a9
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.00426630
add esp, 0x10
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f1db
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00426630
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x43c004
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41f11d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00426630
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41f1db
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
cmp esi, ebx
mov dword [ebp + 0xc], eax
jle 0x41f1db
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x41f17c
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.00426800
movzx eax, word [ebp - 8]
add esp, 0xc
cmp edi, ebx
push eax
jne 0x41f1ad
lea eax, [ebp - 0x144]
push 0x43c578
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41f1c5
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call fcn.00425900
inc edi
pop ecx
cmp edi, esi
pop ecx
jl 0x41f171
push dword [ebp - 0x10]
call fcn.004262c0
pop ecx
pop edi
pop esi
pop ebx
leave
ret