joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100727f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007281c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1007284d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1007284b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10055c84
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1007284d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10076450
leave
ret 8
Function at 0xa28058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a281a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa2807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2806a
add dl, dl
jne 0xa28089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa280dc
xor eax, eax
add dl, dl
jne 0xa28096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2817d
add dl, dl
jne 0xa280a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa280b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa280bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa280c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa280d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa28075
mov eax, 1
add dl, dl
jne 0xa280ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa280f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa280e1
sub eax, ebx
mov ebx, 1
jne 0xa28128
mov ecx, 1
add dl, dl
jne 0xa2810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa28119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa28105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa28075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa2813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa2814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa28136
cmp eax, 0x7d00
jae 0xa2816d
cmp eax, 0x500
jb 0xa28168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa28075
cmp eax, 0x7f
ja 0xa28170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa28075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa2819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa28075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10527058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105271a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1052707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1052706a
add dl, dl
jne 0x10527089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105270dc
xor eax, eax
add dl, dl
jne 0x10527096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1052717d
add dl, dl
jne 0x105270a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105270d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10527075
mov eax, 1
add dl, dl
jne 0x105270ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105270f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105270e1
sub eax, ebx
mov ebx, 1
jne 0x10527128
mov ecx, 1
add dl, dl
jne 0x1052710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10527119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10527105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10527075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1052713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1052714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10527136
cmp eax, 0x7d00
jae 0x1052716d
cmp eax, 0x500
jb 0x10527168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10527075
cmp eax, 0x7f
ja 0x10527170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10527075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1052719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10527075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100019a6
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
mov ecx, edi
call fcn.10022c37
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], 1
mov dword [ebp - 4], ecx
cmp byte [0x10036ee8], cl
je 0x10001a1a
cmp dword [edi + 0x14], 0x10
jb 0x100019f5
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001a1a
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.10022c37
pop ecx
mov eax, esi
call fcn.10026544
ret 8

Function at 0x10001a2b
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100021f9
pop ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], cl
mov dword [ebp - 4], ecx
cmp byte [0x10036ee8], cl
je 0x10001a9c
cmp dword [edi + 0x14], 0x10
jb 0x10001a76
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10001a9c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.10002e0d
mov eax, esi
call fcn.10026544
ret 4

Function at 0x10001aad
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100021f9
pop ecx
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov dword [ebp - 4], eax
cmp byte [0x10036ee8], al
je 0x10001b1a
cmp dword [edi + 0x14], 0x10
jb 0x10001af5
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001b1a
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, esi
call fcn.10026544
ret
Function at 0x10001c19
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CMemMappedFile.0
and dword [ebp - 4], 0
cmp byte [0x10036ee8], 0
je 0x10001c6d
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10001c48
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__dtor
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001c6d
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.10004020
cmp dword [esi + 0x20], 0
je 0x10001c83
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esi + 0x1c], 0
je 0x10001c92
push dword [esi + 0x1c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
call fcn.10022c37
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [esi + 4]
call fcn.10022c37
call fcn.10026544
ret
Function at 0x10001ed1
Capabilities:
Print debug messages

Disassembly:
push 0x20
mov eax, 0x10027712
call fcn.100265a9
cmp byte [0x10036ee8], 0
mov esi, 0x100368d8
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.kernel32.dll_OutputDebugStringA]
je 0x10001f1c
cmp dword [edi + 0x14], 8
jb 0x10001efe
mov eax, dword [edi]
jmp 0x10001f00
mov eax, edi
push eax
push str.CMemMappedFile_CreateAndLoadFromFile__file__11S_
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001f1c
push esi
call ebx
xor esi, esi
call fcn.10022c37
test al, al
jne 0x10001f75
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], esi
test eax, eax
je 0x10001f44
mov ecx, eax
call fcn.10001aad
mov esi, eax
jmp 0x10001f46
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push edi
call fcn.10022c37
push eax
mov eax, dword [esi]
xor edi, edi
inc edi
mov ecx, esi
mov dword [ebp - 4], edi
call dword [eax + 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.10022c37
jmp 0x1000207d
call fcn.100196ae
test al, al
je 0x10002031
push edi
call fcn.10022c37
mov dword [ebp - 0x2c], eax
pop ecx
test eax, eax
je 0x10002007
cmp byte [0x10036ee8], 0
je 0x10001ff2
cmp dword [edi + 0x14], 8
jb 0x10001fa3
mov eax, dword [edi]
jmp 0x10001fa5
mov eax, edi
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
push eax
push str.CMemMappedFile::CreateAndLoadFromFile___11S_
push 0x100368d8
call esi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001ff2
push 0x100368d8
call ebx
cmp byte [0x10036ee8], 0
je 0x10001ff2
push str.CMemMappedFile___remote_creation
push 0x100368d8
call esi
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x10001ff2
push 0x100368d8
call ebx
push dword [ebp - 0x2c]
call fcn.100194d2
mov esi, eax
pop ecx
push edi
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x28]
jmp 0x1000207d
cmp byte [0x10036ee8], 0
je 0x1000207d
push str.CMemMappedFile__ERROR_diskFileSize__0_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x1000207d
push edi
call ebx
jmp 0x1000207d
cmp byte [0x10036ee8], 0
je 0x10002059
push str.CMemMappedFile___creation_deferred
mov esi, 0x100368d8
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x10002059
push esi
call ebx
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1000207b
push edi
mov ecx, eax
call fcn.10001992
mov esi, eax
jmp 0x1000207d
xor esi, esi
mov eax, esi
call fcn.10026558
ret
Function at 0x10002085
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x10027b41
call fcn.10026576
cmp byte [0x10036ee8], 0
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
je 0x100020c9
push esi
push str.CMemMappedFile_CreateWithSize__size_lu_
push 0x100368d8
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x100020c9
push 0x100368d8
call edi
call fcn.10022c37
test al, al
je 0x1000210d
call fcn.100196ae
test al, al
je 0x1000210d
cmp byte [0x10036ee8], 0
je 0x10002104
push esi
push str.CMemMappedFile::CreateWithSize__lu___REMOTE_CREATION_
push 0x100368d8
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10002104
push 0x100368d8
call edi
push esi
call fcn.100194d2
pop ecx
jmp 0x10002152
cmp byte [0x10036ee8], 0
je 0x10002136
push esi
push str.CMemMappedFile::CreateWithSize__lu___LOCAL_CREATION_
push 0x100368d8
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10002136
push 0x100368d8
call edi
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x10002152
push esi
call fcn.10001a2b
call fcn.10026544
ret

Function at 0x1000229e
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x10027783
call fcn.100265a9
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
cmp byte [0x10036ee8], bl
je 0x100022f1
cmp dword [esi + 0x14], 0x10
jb 0x100022ca
mov eax, dword [esi]
jmp 0x100022cc
mov eax, esi
push ecx
push eax
push str.CMemMappedFile_GetExistingMemoryMappedFile__name_s__size_lu_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], bl
je 0x100022f1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.10022c37
mov edi, eax
pop ecx
test edi, edi
jne 0x1000234c
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
mov dword [ebp - 0x34], edi
and dword [ebp - 4], 0
test edi, edi
je 0x10002335
push esi
lea ecx, [ebp - 0x28]
call fcn.10022c37
push dword [ebp - 0x2c]
xor ebx, ebx
mov byte [ebp - 4], 1
inc ebx
mov ecx, edi
push eax
mov dword [ebp - 0x30], ebx
call fcn.100019a6
mov edi, eax
jmp 0x10002337
xor edi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1000234c
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10022c37
mov eax, edi
call fcn.10026558
ret
Function at 0x10002e0d
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x10036ee8]
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
test al, al
je 0x10002e57
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10002e32
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__createMemoryMappedFile
push 0x100368d8
call ebx
mov al, byte [0x10036ee8]
add esp, 0xc
test al, al
je 0x10002e57
push 0x100368d8
call edi
mov al, byte [0x10036ee8]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10002ee8
mov ecx, esi
call fcn.10022c37
mov dword [esi + 0x20], eax
test eax, eax
je 0x10002eb0
cmp byte [0x10036ee8], 0
je 0x10002ea7
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10002e84
mov eax, dword [eax]
push dword [esi + 0x24]
push eax
push str.CMemMappedFile__s__created_file_of_size___lu
push 0x100368d8
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10002ea7
push 0x100368d8
call edi
push esi
call fcn.10022c37
pop ecx
jmp 0x10002f18
cmp byte [0x10036ee8], 0
je 0x10002f18
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10002ec4
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_CREATING__err_u_
mov esi, 0x100368d8
push esi
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10002f18
push esi
jmp 0x10002f16
test al, al
je 0x10002f18
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10002ef7
mov esi, dword [esi]
push ecx
push esi
push str.CMemMappedFile__s__ERROR_CREATING__SIZE__0_
push 0x100368d8
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10002f18
push 0x100368d8
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x100034a7
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x10036ee8], 0
push esi
mov esi, ecx
je 0x100034e8
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100034be
mov eax, dword [eax]
push edi
push dword [esi + 0x24]
mov edi, 0x100368d8
push eax
push str.CMemMappedFile__s__size___lu
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x100034e7
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov eax, dword [esi + 0x24]
pop esi
ret

Function at 0x100034f0
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x10036ee8], 0
push esi
mov esi, ecx
je 0x10003540
lea edx, [esi + 4]
cmp dword [edx + 0x14], 0x10
jb 0x10003507
mov edx, dword [edx]
cmp dword [esi + 0x20], 0
mov ecx, str.false
push edi
mov eax, str.true
mov edi, 0x100368d8
cmove eax, ecx
push eax
push edx
push str.CMemMappedFile__s__isValid___s
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x1000353f
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
xor eax, eax
cmp dword [esi + 0x20], eax
pop esi
setne al
ret
Function at 0x10004087
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10036ee8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
je 0x100040d3
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100040a9
mov eax, dword [eax]
push edi
push ebx
push eax
push str.CMemMappedFile__s__writeBytes_offset_u__length_u_
push 0x100368d8
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x14
cmp byte [0x10036ee8], 0
je 0x100040d3
push 0x100368d8
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov edx, dword [esi]
lea eax, [ebx + edi]
push eax
mov ecx, esi
call dword [edx + 0xc]
test eax, eax
je 0x100040fc
push edi
push dword [ebp + 8]
add eax, ebx
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [eax + 0x10]
mov al, 1
jmp 0x10004139
cmp byte [0x10036ee8], 0
je 0x10004137
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10004110
mov eax, dword [eax]
push edi
push ebx
push eax
push str.CMemMappedFile__s__ERROR_WRITING__NO_MEMORY_MAPPED_FILE_
mov ebx, 0x100368d8
push ebx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x14
cmp byte [0x10036ee8], 0
je 0x10004137
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10004910
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0x1002785d
call fcn.10026576
mov eax, ecx
mov dword [ebp - 0x10], eax
add eax, 0x30
mov edi, eax
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
neg eax
sbb esi, esi
neg esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.10022c37
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x1000497f
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1000495c
push edi
call ebx
mov edi, dword [ebp - 0x14]
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
neg eax
sbb esi, esi
neg esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.10022c37
pop ecx
test eax, eax
je 0x10004951
mov edx, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [ebp + 8], ecx
sete cl
mov eax, dword [edx + 0x24]
inc ecx
mov dword [eax + 0x18], ecx
mov eax, dword [edx + 0x2c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100049c9
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0
jne 0x100049c9
mov ecx, dword [ebp - 0x10]
call fcn.10004cd1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100049d4
push edi
call ebx
call fcn.10026544
ret 4
Function at 0x10004cd1
Capabilities:
Resume thread
Terminate thread

Disassembly:
push 0x10
mov eax, 0x1002785d
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10004e03
cmp dword [eax + 8], 0
je 0x10004e03
lea eax, [esi + 0x30]
mov ebx, eax
mov dword [ebp - 0x10], eax
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
neg eax
sbb edi, edi
neg edi
mov dword [ebp - 0x18], edi
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.10022c37
pop ecx
test eax, eax
jne 0x10004d5f
mov esi, ebx
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10004d35
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ebx, esi
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
neg eax
sbb edi, edi
neg edi
mov dword [ebp - 0x18], edi
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.10022c37
pop ecx
test eax, eax
je 0x10004d26
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10004da8
cmp dword [eax + 8], 0
je 0x10004da8
cmp dword [esi + 0x2c], 0
jne 0x10004da8
push 0
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], 1
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x24]
or dword [ebp - 4], 0xffffffff
and dword [eax + 8], 0
test edi, edi
je 0x10004e03
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10004e03
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10004db7
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x24]
xor ebx, ebx
mov dword [esi + 0x2c], ebx
push dword [eax + 0x1c]
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [esi + 0x24]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [esi + 0x24]
push 0x3e8
mov edi, dword [eax + 8]
push edi
mov dword [eax + 8], ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10004df5
mov dword [esi + 0x20], ebx
jmp 0x10004e03
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi + 0x20], 1
call fcn.10026544
ret
Function at 0x1000c475
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x1002b7b4
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x1000c496
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x1000c492
xor eax, eax
ret

Function at 0x1000c4a4
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x1000c4c5
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x1000c4c1
xor eax, eax
ret

Function at 0x10010a25
Capabilities:
Check os version

Disassembly:
push 0x14c
mov eax, 0x10028360
call fcn.100265a9
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
xor bl, bl
call fcn.10022c37
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push dword [sym.imp.MSVCR120.dll_towlower]
cmovae edx, dword [ebp - 0x28]
push edx
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x158]
push ecx
push eax
call fcn.10022c37
mov edi, 0x114
lea eax, [ebp - 0x154]
push edi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x20
mov dword [ebp - 0x154], edi
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
test eax, eax
je 0x10010ad7
cmp dword [ebp - 0x150], 5
jne 0x10010ad7
cmp dword [ebp - 0x14c], ecx
jne 0x10010ad7
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10010f8c
test al, al
je 0x10010ad4
xor eax, eax
inc eax
mov bl, al
jmp 0x10010b35
xor ecx, ecx
inc ecx
and dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], cl
push eax
call fcn.100124b6
pop ecx
test al, al
je 0x10010b20
push dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.10022c37
cmp eax, 0xffffffff
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
jmp 0x10010b23
xor eax, eax
inc eax
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10022c37
xor eax, eax
inc eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.10022c37
mov al, bl
call fcn.10026558
ret 4