joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001bfcc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x1001c037
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1001c04b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x1001c037
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x1001c049
cmp dword [edi + 4], ebx
je 0x1001c049
cmp dword [edi + 0xc], ebx
je 0x1001c049
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1001c051
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, ecx
push 0
push eax
call fcn.10046d90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001c0bb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esi, 1
jne 0x1001c0a9
push str.netul.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001c105
lea eax, [ebp - 0x20c]
push eax
call fcn.1000ac63
mov ecx, eax
call fcn.10006064
test eax, eax
je 0x1001c105
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.1001bfcc
jmp 0x1001c107
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret 4
Function at 0x1001caa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x41c
mov eax, 0x1006add1
call fcn.100417b5
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x414], eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push eax
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
jne 0x1001cb15
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1001cb15
call fcn.1000ab29
mov esi, eax
jmp 0x1001cbbd
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001cb35
call fcn.1000ab29
jmp 0x1001cbb0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1001cb2e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001cb5b
mov esi, 0x8007000e
jmp 0x1001cbb2
push eax
lea ecx, [ebp - 0x414]
call fcn.1001ad56
cmp dword [ebp - 0x414], 0
mov dword [ebp - 4], 1
je 0x1001cb54
push esi
push dword [ebp - 0x414]
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1001cb2e
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x424]
push dword [ebp - 0x414]
call fcn.1001c96d
mov esi, eax
test edi, edi
je 0x1001cbbd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1001cbd6
lea ecx, [ebp - 0x414]
call fcn.1001bb1c
mov eax, esi
call fcn.1004175f
ret 0x10
Function at 0x1001dbce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 1
mov ecx, 0x10092f40
call fcn.1001cc0e
mov esi, eax
test esi, esi
js 0x1001dc3f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x10093cb0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.1004a445
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push dword [0x1008f3a4]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.1001a95a
mov ecx, dword [ebp - 4]
mov eax, esi
and dword [section..IShareO], 0
xor ecx, ebp
pop esi
call fcn.10041739
leave
ret
Function at 0x100209e4
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xd0
mov eax, 0x1006af43
call fcn.100417b5
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x10020b1d
lea ecx, [edi + 0x2c]
mov dword [ebx + 0x58], edi
call fcn.1001093d
lea esi, [ebx + 0x5c]
push edi
mov ecx, esi
call fcn.100194c9
call fcn.10001ccc
push eax
lea ecx, [ebp - 0x44]
call fcn.1000170c
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x44]
and dword [ebp - 4], 0
push eax
mov ecx, dword [ecx + 0x54]
call fcn.10010e6c
push dword [ebp - 0x44]
mov ecx, ebx
push esi
call fcn.10017ef5
call fcn.1003e660
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x10020add
push str.d:jenkins.jenkinsworkspacecore_lib_v3_updata_module_v3_update_safeliveupdateclass.cpp
lea ecx, [ebp - 0x40]
call fcn.10009df8
push 0x1006fe10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10009df8
mov byte [ebp - 4], 2
call fcn.1003e660
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0xaa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10009eb8
mov esi, eax
push str.StartUpdate
push esi
mov byte [ebp - 4], 3
call fcn.1000a6f2
push dword [ebp - 0x44]
push esi
call fcn.1001e6f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.1000a85c
lea ecx, [ebp - 0x28]
call fcn.1000bcc4
lea ecx, [ebp - 0x40]
call fcn.1000bcc4
push 0
push 4
push ebx
push 0x100237c0
push 0
push 0
call fcn.100506e7
add esp, 0x18
mov dword [ebx + 0xd8], eax
test eax, eax
je 0x10020b12
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebx + 0xd8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.10002163
call fcn.1004175f
ret 4
Function at 0x10022ceb
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1006b654
call fcn.10041781
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 0x10]
call fcn.10001c06
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x5c]
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.10018f96
test eax, eax
je 0x10022e16
mov eax, dword [edi + 0x30]
cmp dword [eax - 0xc], 0
je 0x10022d49
push esi
push dword [ebx + 0x58]
lea ecx, [ebp + 0xf]
push ecx
push eax
call fcn.100083fb
add esp, 0x10
test eax, eax
je 0x10022e16
cmp byte [ebp + 0xf], 0
je 0x10022e16
test byte [edi + 0x2c], 0x10
jne 0x10022d6b
test dword [edi + 0x2c], 0x800
jne 0x10022d6b
push dword [edi + 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10022d6b
inc eax
jmp 0x10022e18
mov esi, dword [edi + 0x2c]
xor ebx, ebx
shr esi, 0xb
inc ebx
and esi, ebx
call fcn.10001ccc
push eax
lea ecx, [ebp - 0x14]
call fcn.1000170c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x58]
push 0
push eax
push esi
mov ecx, dword [ecx + 0x54]
push edi
call fcn.10010b8d
test eax, eax
je 0x10022e07
push dword [edi + 4]
push dword [esi]
call fcn.1000d019
pop ecx
pop ecx
test eax, eax
jns 0x10022e05
test dword [edi + 0x2c], 0x200
je 0x10022e07
call fcn.10001ccc
push eax
lea ecx, [ebp + 0x10]
call fcn.1000170c
push dword [esi]
lea eax, [ebp + 0x10]
mov byte [ebp - 4], bl
push dword [ebp + 8]
push str._s:_s_
push eax
call fcn.1000d383
mov esi, dword [ebp + 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push dword [esi - 0xc]
lea ecx, [ecx + 0xf8]
push esi
call fcn.10015503
lea ecx, [esi - 0x10]
call fcn.10002163
jmp 0x10022e07
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002163
mov eax, ebx
jmp 0x10022e18
xor eax, eax
call fcn.1004174a
ret 0xc
Function at 0x1002397d
Capabilities:
Check if file exists
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100239f1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
test eax, eax
je 0x100239be
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100239f1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, edi
call fcn.10023cb6
test eax, eax
je 0x100239f1
lea ebx, [edi + 0xc8]
push esi
mov ecx, edi
call fcn.10023811
test eax, eax
je 0x10023a0d
push 3
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.10013838
test eax, eax
je 0x10023a0d
push 2
pop eax
jmp 0x100239b7
push 3
push esi
push dword [ebp + 0xc]
lea ebx, [edi + 0xc8]
mov ecx, ebx
call fcn.10013838
test eax, eax
je 0x100239cf
xor eax, eax
inc eax
jmp 0x100239b7
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call fcn.10023a23
test eax, eax
je 0x100239b5
push 3
jmp 0x100239ee

Function at 0x10023a23
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x418], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.1000b32f
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x10023b0e
lea eax, [ebp - 0x414]
push eax
call fcn.1000dffd
pop ecx
test eax, eax
je 0x10023b0e
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x100732dc
push eax
call fcn.1000e0d5
add esp, 0xc
test eax, eax
je 0x10023b0e
push 0
lea eax, [ebp - 0x20c]
push eax
push ebx
lea ecx, [edi + 0xc8]
call fcn.1001380a
test eax, eax
je 0x10023b0e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 5
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0xc8]
call fcn.10013838
test eax, eax
lea eax, [ebp - 0x20c]
push eax
je 0x10023b08
call fcn.1004a445
pop ecx
mov ecx, dword [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100021cf
xor eax, eax
inc eax
jmp 0x10023b10
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret 0xc
Function at 0x10023b21
Capabilities:
Copy file

Disassembly:
push 0x218
mov eax, 0x1006b7ac
call fcn.100417b5
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
call fcn.10001ccc
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000170c
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x21c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov ecx, dword [ecx + 0x54]
call fcn.10010e6c
test eax, eax
je 0x10023bd7
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x10023bd4
lea eax, [ebp - 0x218]
push eax
push 0x10073370
push dword [ebp - 0x21c]
call fcn.1000e0d5
add esp, 0xc
test eax, eax
je 0x10023bd7
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10023bd7
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x218]
push esi
push dword [ebp - 0x220]
mov ecx, dword [ecx + 0x54]
push eax
push dword [ebp - 0x224]
call fcn.100110c6
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.10002163
mov eax, esi
call fcn.1004175f
ret 0xc
Function at 0x10025d04
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x88], ecx
mov ebx, esi
push edi
mov edi, esi
test eax, eax
je 0x10025e9c
test ecx, ecx
je 0x10025e9c
cmp dword [ebp + 0x10], 0x10
jl 0x10025e9c
push dword [ebp + 0x10]
push esi
push ecx
call fcn.10046d90
add esp, 0xc
push esi
push 1
push 3
push esi
push 1
push 1
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x10025e9c
cmp eax, 0xffffffff
je 0x10025e95
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.1002545e
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], esi
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10025e92
mov eax, dword [ebp - 0x7c]
or eax, dword [ebp - 0x78]
je 0x10025e59
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x80], edi
test edi, edi
je 0x10025e92
mov eax, dword [ebp - 0x78]
mov edx, esi
mov dword [ebp - 0x74], edx
mov ecx, esi
mov dword [ebp - 0x84], ecx
cmp edx, eax
jg 0x10025e59
mov edi, dword [ebp - 0x7c]
jl 0x10025de9
cmp ecx, edi
jae 0x10025e56
sub edi, ecx
sbb eax, edx
js 0x10025dfe
jg 0x10025df9
cmp edi, 0x400000
jb 0x10025dfe
mov edi, 0x400000
push edi
push ecx
push edx
push 4
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10025e56
push edi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.1002549c
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x84]
mov ebx, esi
mov edx, dword [ebp - 0x74]
add ecx, 0x400000
mov eax, dword [ebp - 0x78]
adc edx, esi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x74], edx
cmp edx, eax
jge 0x10025e4f
mov edi, dword [ebp - 0x7c]
jmp 0x10025de9
jg 0x10025e56
mov edi, dword [ebp - 0x7c]
jmp 0x10025de5
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
call fcn.100253a2
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.1000240c
xor esi, esi
add esp, 0x14
inc esi
test ebx, ebx
je 0x10025e87
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
je 0x10025e92
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret
Function at 0x10025f1b
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x1006b993
call fcn.10041781
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x100260b9
push esi
call fcn.100413ba
mov edi, eax
pop ecx
test edi, edi
je 0x100260b9
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100260b2
call fcn.100262e1
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x10026066
call fcn.10026267
test eax, eax
jne 0x10026066
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10026066
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x10026066
call fcn.10001ccc
push eax
lea ecx, [ebp - 0x18]
call fcn.1000170c
mov ecx, dword [ebp - 0x28]
and dword [ebp - 4], 0
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.1000d383
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1002602a
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10002163
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x10025fbc
jmp 0x10026066
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.100021cf
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.100263be
push 0x20
mov ecx, ebx
call fcn.1002633e
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.10002163
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x100260af
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x10070c94
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100260af
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push ebx
call fcn.1000d383
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x100260b2
mov ebx, dword [ebp - 0x10]
push edi
call fcn.100413c3
pop ecx
mov eax, ebx
call fcn.1004174a
ret
Function at 0x1002610b
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov esi, eax
test esi, esi
je 0x1002614f
push str..exe
push esi
call edi
test eax, eax
je 0x1002615b
push str..dll
push esi
call edi
test eax, eax
je 0x1002615b
push str..sys
push esi
call edi
test eax, eax
jne 0x10026163
xor eax, eax
inc eax
jmp 0x10026203
xor esi, esi
xor eax, eax
push esi
inc eax
push eax
push 3
push esi
push eax
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10026185
xor eax, eax
jmp 0x10026203
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x140]
push esi
push eax
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x140], esi
push eax
push edi
call ebx
cmp dword [ebp - 0x140], 0x40
jne 0x100261fa
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x100261fa
push esi
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100261fa
push esi
lea eax, [ebp - 0x140]
push eax
push 0xf8
lea eax, [ebp - 0x13c]
push eax
push edi
call ebx
cmp dword [ebp - 0x140], 0xf8
jne 0x100261fa
cmp dword [ebp - 0x13c], 0x4550
push 1
pop eax
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret
Function at 0x10035cd0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ced0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10090590]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x10035e19
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10035e19
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10035e19
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10035e19
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x10035e05
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10035dfe
cmp dword [ebp - 0x1c], ebx
jne 0x10035dfe
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x10035d9d
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x10035d97
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x10035da9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.100244cd
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.10028d75
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x10035dfe
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003b470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d628
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10090590]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1004137c
mov edi, eax
add esp, 4
test edi, edi
je 0x1003b50d
push 1
mov dword [ebp - 4], 0
call fcn.10028a77
add esp, 4
mov dword [edi + 4], eax
jmp 0x1003b50f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10029427
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x1003b571
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x1003b571
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x1003b594
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1003b5b7
cmp byte [ebp + 0xc], 0
je 0x1003b5a3
push esi
call fcn.10028e77
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1003b5c3
mov esi, str.ios_base::badbit_set
jmp 0x1003b5d3
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1000c37d
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.1000a1e6
push 0x100868cc
lea eax, [ebp - 0x30]
push eax
call fcn.10048239
int3