joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4154dc
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.00420ef7
pop ecx
test eax, eax
pop ecx
jge 0x415547
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, 0x43e190
jmp 0x415596
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00401046
mov ecx, eax
call fcn.0041dbcd
push dword [ebp + 8]
test eax, eax
je 0x41557c
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 0x415596
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.0041dbcd
test eax, eax
je 0x4155bd
mov ecx, esi
call fcn.00401046
push eax
push 1
push edi
push dword [ebp + 8]
call fcn.00421732
jmp 0x4155cb
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00421000
mov esi, eax
test esi, esi
je 0x415689
cmp esi, 0xbc2
je 0x4155f8
push 0
push esi
mov dword [0x445424], 0x484
call fcn.00420377
pop ecx
mov eax, esi
pop ecx
jmp 0x41568b
cmp byte [ebp + 0xf], 0
je 0x415683
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.0040f736
test eax, eax
jne 0x415672
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 0x415689
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415689
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41746c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x43455a
call fcn.00427498
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, 0x43647c
mov esi, 0x436474
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.00417673
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 0x4174f5
lea ecx, [ebp - 0x10]
call fcn.0040a6e5
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 0x41762b
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 0x417575
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 0x417647
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.0040a1ce
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040191f
mov eax, 0x43e2b0
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x442434
jne 0x4175be
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b6e0
mov eax, 0x43e2ac
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x4175e7
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040b6e0
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.004187a5
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.0040b64d
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040191f
cmp dword [ebp - 0x10], 0
je 0x417662
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 0x41a4f1
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 0x41a505
push 0x28
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41a539
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0042472e
test al, al
jne 0x41a56c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411b64
lea eax, [ebp - 0x4c]
push 0x4399d8
push eax
call fcn.004292ec
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 0x41a56c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411991
lea eax, [ebp - 0x48]
push 0x4399c8
push eax
call fcn.004292ec
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41a574
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 0x41a588
push 0x50
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41a5bc
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0042472e
test al, al
jne 0x41a5ef
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411b64
lea eax, [ebp - 0x4c]
push 0x4399d8
push eax
call fcn.004292ec
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 0x41a5ef
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411991
lea eax, [ebp - 0x48]
push 0x4399c8
push eax
call fcn.004292ec
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41ad16
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 0x41adc6
dec eax
je 0x41adbb
dec eax
jne 0x41adcd
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 0x41adab
dec eax
je 0x41ada2
dec eax
jne 0x41adae
mov dword [ebp - 0x18], 5
jmp 0x41adae
mov dword [ebp - 0x18], 3
jmp 0x41adae
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x41adcd
mov dword [ebp - 0x14], esi
jmp 0x41adcd
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x41adcd
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0041c103
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x41b1a2
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 0x41b1dc
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 0x41b1ba
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x41d35d
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 0x41d413
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.004204d4
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x41d403
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41d3bf
lea eax, [ebp - 0x118]
push 0x43d290
push eax
call fcn.00428f80
pop ecx
test eax, eax
pop ecx
jne 0x41d3db
mov eax, 0x486
push eax
mov dword [0x445424], eax
call fcn.0042045d
pop ecx
push dword [0x445424]
call fcn.00428e80
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.004216cf
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 0x41d808
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], 0x41d960
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 0x41d88b
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x41d92d
push 0xd0
call fcn.004274b7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41d92d
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 0x41d931
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x41d959
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 0x41dcb3
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x434d5e
call fcn.00427498
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 0x442430
push str.ClickOncePackage
push str.Startup
call fcn.004025bc
cmp byte [ebp - 0x4b0], bl
jne 0x41dd17
xor eax, eax
jmp 0x41de17
push 1
lea eax, [ebp - 0xe]
pop edi
mov ecx, esi
push edi
push eax
call fcn.0041c1a9
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.0040aef4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.0040ae3f
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040a1ce
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.00420de9
test eax, eax
jne 0x41dde8
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.0040a1ce
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 0x41f8f3
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x434f02
call fcn.00427498
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], 0x436e74
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041feac
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 0x41f987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x41fa0a
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004274b7
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.00427d00
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.0042013a
test eax, eax
je 0x41fa0a
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 0x41fa0a
cmp dword [ebp - 0x10], edi
je 0x41fa0a
mov ecx, esi
call fcn.0041faa6
test eax, eax
je 0x41fa0a
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x41fa0a
movzx eax, ax
push eax
mov ecx, esi
call fcn.0041fe28
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41fe28
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 0x41fea5
mov esi, 0x138
push esi
call fcn.004274b7
mov ebx, eax
push esi
push 0
push ebx
call fcn.00427d00
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 0x41fea5
cmp dword [ebp - 8], 0
je 0x41fea5
push ebx
lea ecx, [edi + 0x120]
call fcn.0042017b
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0042013a
test eax, eax
je 0x41fea5
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x41fe41
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41feac
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 0x41fef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x41ff40
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.0042013a
test eax, eax
je 0x41ff40
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.0042013a
test eax, eax
jne 0x41ff44
xor eax, eax
jmp 0x41ff96
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x41ff80
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 0x41ff6a
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 0x41ff50
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0041ff9b
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 0x41ff9b
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 0x41ffc7
xor eax, eax
jmp 0x420077
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 0x42006c
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 0x420061
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.0042007c
cmp eax, ebx
je 0x420017
cmp dword [eax + 0xc], edi
jne 0x420017
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x420048
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.0042007c
mov edi, eax
cmp edi, ebx
je 0x420061
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x420061
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x42005c
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x420052
jmp 0x42005f
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 0x420613
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, 0x442430
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x42079b
push esi
call fcn.00427a79
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00427d00
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x420792
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00427d00
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x43e0a4
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4206d5
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 edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00427d00
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x420792
and byte [ebp - 0x144], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
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
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x420792
and dword [ebp - 0xc], 0
test edi, edi
jle 0x420738
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.00427df0
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x420769
lea eax, [ebp - 0x144]
push 0x43e638
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x420781
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 ebx
inc edi
cmp edi, esi
jl 0x42072c
push dword [ebp - 8]
call fcn.00427990
pop ecx
pop edi
pop esi
pop ebx
leave
ret