joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4118e7
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x461fe0
call fcn.0043f4b0
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 6
pop ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x41196c
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0043a914
test al, al
jne 0x4119c1
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x46be90
mov dword [ebp - 0x48], 0x46c540
call fcn.004064d5
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.004129ff
push 0x47b39c
lea eax, [ebp - 0x114]
push eax
call fcn.0043df52
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4119c1
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46be90
mov dword [ebp - 0x18], 0x46c540
call fcn.004064d5
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041264d
push 0x47b328
lea eax, [ebp - 0xc0]
jmp 0x411966
mov eax, dword [ebp - 0x118]
call fcn.0043f45f
ret 8

Function at 0x4119cf
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x461fe0
call fcn.0043f4b0
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0x26
pop ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x411a54
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0043a914
test al, al
jne 0x411aa9
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x46be90
mov dword [ebp - 0x48], 0x46c540
call fcn.004064d5
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.004129ff
push 0x47b39c
lea eax, [ebp - 0x114]
push eax
call fcn.0043df52
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411aa9
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46be90
mov dword [ebp - 0x18], 0x46c540
call fcn.004064d5
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041264d
push 0x47b328
lea eax, [ebp - 0xc0]
jmp 0x411a4e
mov eax, dword [ebp - 0x118]
call fcn.0043f45f
ret 8
Function at 0x41432b
Capabilities:
Get disk information

Disassembly:
push 0x64
mov eax, 0x4625ea
call fcn.0043f4b0
mov edi, ecx
lea ecx, [edi + 4]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00409f77
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.004077fc
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x414368
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00401500
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401500
cmp esi, 2
je 0x4143b4
cmp esi, 5
je 0x4143b4
cmp esi, 3
je 0x4143b0
cmp esi, 4
je 0x4143b0
cmp esi, 6
je 0x4143b0
mov ecx, edi
call fcn.004157d6
xor ecx, ecx
cmp ax, 1
setne al
jmp 0x4143b6
xor al, al
jmp 0x4143b6
mov al, 1
call fcn.0043f45f
ret
Function at 0x414ee0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x46]
push edi
mov word [esi + 0xc], 0
call fcn.00417b7a
test al, al
je 0x414f07
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x44], ax
jmp 0x414f7f
mov ax, word [ebp + 8]
test ax, ax
jne 0x414f22
cmp dword [esi + 0x40], 4
jne 0x414f22
mov ecx, esi
lea edi, [esi + 0x44]
call fcn.00415ae1
jmp 0x414f25
lea edi, [esi + 0x44]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00417b7a
test al, al
je 0x414f3a
mov byte [esi + 0xd], 1
jmp 0x414f7f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00417b7a
test al, al
jne 0x414f7f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00417b7a
test al, al
jne 0x414f7f
call fcn.00433fb8
push edi
mov ecx, esi
mov word [edi], ax
call fcn.00417b7a
test al, al
jne 0x414f7f
mov ax, word [esi + 0x48]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4
Function at 0x41568c
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebx + 0xa8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], edi
test edi, edi
je 0x4157c7
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
mov ecx, esi
cmovne ecx, dword [ebp - 0x1c]
push ebx
push str..debug
mov dword [ebp - 0xc], ecx
call fcn.0041603b
pop ecx
pop ecx
test eax, eax
je 0x4156f9
cmp dword [eax + 0xc], edi
jne 0x4156f9
mov ecx, dword [eax + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + 0xac]
mov dword [ebp + 0x10], ecx
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
jmp 0x41575b
push ebx
push str..rdata
call fcn.0041603b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x415723
push ebx
push str..text
call fcn.0041603b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4157c7
mov eax, dword [ebx + 0xac]
push 0x1c
xor edx, edx
pop ecx
mov dword [ebp - 8], eax
div ecx
mov ebx, eax
test ebx, ebx
je 0x4157c7
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x4157c7
sub edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 0x10], eax
lea edi, [eax + ecx]
mov eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0xc]
jbe 0x4157ac
cmp dword [ebp + 8], esi
je 0x4157ac
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
imul eax, dword [ebp - 0x30]
add ecx, edx
push ecx
push eax
push esi
push 4
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4157c7
lea ecx, [ebp - 4]
call fcn.0041e377
mov dword [ebp - 4], edi
sub edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x4157c7
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x4157bf
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x4157b3
lea ecx, [ebp - 4]
call fcn.0041e377
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x417aef
Capabilities:
Read .ini file

Disassembly:
push 0x38
mov eax, 0x462e59
call fcn.0043f4b0
mov edi, ecx
lea esi, [edi + 4]
lea eax, [ebp - 0x40]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040a04e
add eax, 4
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x44], 1
jb 0x417b2c
mov eax, dword [eax]
push eax
push ebx
push str.AllUsers
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x417b4b
cmp byte [edi + 0x258], 0
je 0x417b58
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp byte [eax + 0x1b], 0
je 0x417b5a
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.00401500
xor eax, eax
mov ecx, 0x80042002
test bl, bl
cmovne eax, ecx
call fcn.0043f45f
ret
Function at 0x417eec
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x417f37
lea ecx, [ebp - 0xc]
call fcn.00403220
mov edi, esi
mov dword [ebp - 0xc], edi
cmp esi, 0xffffffff
je 0x41805e
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41805e
lea ecx, [ebp - 8]
call fcn.00403220
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
push eax
push ebx
push ebx
push 4
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41805e
lea ecx, [ebp - 4]
call fcn.0041e377
mov eax, 0x5a4d
mov dword [ebp - 4], esi
cmp word [esi], ax
jne 0x418029
mov eax, dword [esi + 0x3c]
add eax, esi
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x418022
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x418022
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x18], ecx
jae 0x41802c
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
cmp esi, eax
je 0x417ff5
lea ecx, [ebp - 4]
call fcn.0041e377
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x418022
mov eax, dword [esi + 0x3c]
add eax, esi
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x418022
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x41802c
mov ebx, 0xc1
jmp 0x418066
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x418038
mov dword [ecx], esi
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418044
mov dword [ecx], edi
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x418053
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
mov dword [ebp - 8], ebx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x418066
mov dword [ecx], eax
jmp 0x418066
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.0041e377
lea ecx, [ebp - 8]
call fcn.00403220
lea ecx, [ebp - 0xc]
call fcn.00403220
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41b18c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x463567
call fcn.0043f51c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41b209
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41b209
call fcn.00413df3
mov esi, eax
jmp 0x41b2e0
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41b22c
call fcn.00413df3
jmp 0x41b2d3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x41b222
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41b25c
mov esi, 0x8007000e
jmp 0x41b2d5
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00413abe
jmp 0x41b282
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x41b255
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x41b222
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0041b053
mov esi, eax
test edi, edi
je 0x41b2e0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41b2f9
lea ecx, [ebp - 0x418]
call fcn.00415394
mov eax, esi
call fcn.0043f46e
ret 0x10
Function at 0x41f8ba
Capabilities:
Get file size

Disassembly:
push 0x108
mov eax, 0x4660d9
call fcn.0043f4b0
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x41f92e
test eax, eax
je 0x41f8db
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f98b
push ebx
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x46be90
mov dword [ebp - 0x48], 0x46c540
call fcn.004064d5
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.004129ff
push 0x47b39c
lea eax, [ebp - 0x114]
push eax
call fcn.0043df52
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x41f98b
push 0
lea ecx, [edi + 0xc]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46be90
mov dword [ebp - 0x18], 0x46c540
call fcn.004064d5
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004126b1
push 0x47b328
lea eax, [ebp - 0xc0]
jmp 0x41f928
mov eax, esi
call fcn.0043f45f
ret 4
Function at 0x423b55
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24c
mov eax, 0x464314
call fcn.0043f4b0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x258], ebx
call fcn.0043dfb0
add esp, 0xc
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], ebx
mov eax, 0x20019
test esi, esi
jns 0x423bad
mov eax, 0x20119
and esi, 0x7fffffff
lea ecx, [ebp - 0x24c]
push ecx
push eax
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423c01
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
mov ecx, str.ProgramFilesDir
cmp esi, 1
push ebx
mov eax, str.CommonFilesDir
cmovne eax, ecx
push eax
push dword [ebp - 0x24c]
mov dword [ebp - 0x254], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x24d]
push eax
lea eax, [ebp - 0x218]
mov ebx, 0x46be90
mov esi, 0x46c540
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x220], esi
call fcn.004065c0
push 0x46a790
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.0042492f
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x28], esi
call fcn.004064d5
lea ecx, [ebp - 0x248]
call fcn.00401500
lea ecx, [ebp - 0x24c]
call fcn.0042aa7a
mov eax, edi
call fcn.0043f45f
ret

Function at 0x423dc5
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0x14
mov eax, 0x464377
call fcn.0043f47d
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xd]
push eax
mov dword [esi], 0x46be90
mov dword [esi + 0x28], 0x46c540
call fcn.004033a0
push 0x105
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040756b
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00407510
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00406b4c
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
call fcn.00401500
mov eax, esi
call fcn.0043f44b
ret 0x30

Function at 0x42450a
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x424525
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x42451e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
pop esi
jmp fcn.00401500
Function at 0x424f36
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x483dc8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0
je 0x424fd7
or dword [ebp - 0x258], 0xffffffff
push esi
lea esi, [ecx + 4]
push edi
cmp dword [esi + 0x14], 8
jb 0x424f69
mov eax, dword [esi]
jmp 0x424f6b
mov eax, esi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x424fca
lea ecx, [ebp - 0x258]
call fcn.0041e391
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x258], edi
jb 0x424f9b
mov eax, dword [esi]
jmp 0x424f9d
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x424fa7
mov edi, dword [esi]
jmp 0x424fa9
mov edi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x424fc3
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x258]
call fcn.0041e391
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043df43
leave
ret
Function at 0x42786d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x483dc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
push edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x44], ecx
mov dword [ecx], edx
mov dword [ebp - 0x4c], edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x427912
push esi
push edi
call fcn.0044059f
push edi
mov esi, eax
push 0
push esi
call fcn.0043dfb0
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42790a
push 0x34
lea eax, [ebp - 0x38]
push edi
push eax
mov dword [ebp - 0x3c], eax
call fcn.0043dfb0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x46a790
push esi
mov dword [ebp - 0x40], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42790a
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
push esi
call fcn.00440567
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0043df43
leave
ret 0xc
Function at 0x427924
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0xb8
mov eax, 0x464c36
call fcn.0043f4b0
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x70], 0x46be90
mov dword [ebp - 0x48], 0x46c540
call fcn.004033a0
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.004034e0
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0
call fcn.00403240
cmp dword [ebp - 0x5c], 0
je 0x4279bd
push esi
lea ecx, [ebp - 0x70]
call fcn.0040fab6
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.00422cc2
push 0
lea eax, [ebp - 0xa1]
push eax
push str.PATH
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46be90
mov dword [ebp - 0x18], 0x46c540
call fcn.00403400
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00426b3e
lea ecx, [ebp - 0x40]
call fcn.00401500
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
push 1
lea eax, [ebp - 0xb0]
push eax
push ecx
push 0x3b
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.00423a51
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
sub eax, esi
push 0x30
cdq
pop ecx
idiv ecx
mov edi, eax
test edi, edi
je 0x427b13
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x427a59
mov eax, dword [esi]
jmp 0x427a5b
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xb4], eax
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46be90
mov dword [ebp - 0x18], 0x46c540
call fcn.004033a0
push dword [ebp - 0xb4]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov byte [eax + 4], 1
call fcn.004034e0
cmp dword [esi + 0x14], 8
mov ecx, dword [eax]
jb 0x427abf
mov eax, dword [esi]
jmp 0x427ac1
mov eax, esi
push dword [ebp - 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.00403240
cmp dword [ebp - 0x2c], 0
je 0x427afd
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x40]
call fcn.0040fab6
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00422cc2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401500
add esi, 0x30
dec edi
jne 0x427a4f
lea ecx, [ebp - 0xb0]
call fcn.0040711a
lea ecx, [ebp - 0xa0]
call fcn.00401500
lea ecx, [ebp - 0x70]
call fcn.00401500
call fcn.0043f45f
ret 8
Function at 0x427cc9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x483dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x427d43
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x427d2a
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x427d2a
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x427d2a
inc bl
jmp 0x427d43
xor eax, eax
test ecx, ecx
je 0x427d43
test bl, bl
jne 0x427d43
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x427d30
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043df43
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x483dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x428731
cmp byte [ebp + 0xc], 0
jne 0x4286df
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x428731
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x428722
call fcn.0043eb00
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x4286ae
xor eax, eax
jmp 0x4286c2
lea eax, [edi + edi]
call fcn.00440fc0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00424ce3
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042a977
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x428733
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x428731
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428721
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x4286c2
lea eax, [esi + 2]
jmp 0x4286c2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043df43
leave
ret 0xc