joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100031a0
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x1003cde0]
push esi
mov esi, ecx
push edi
mov edi, 0x1003c7f0
test al, al
je 0x100031e1
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100031bd
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__createMemoryMappedFile
push edi
call fcn.10017159
mov al, byte [0x1003cde0]
add esp, 0xc
test al, al
je 0x100031e1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, byte [0x1003cde0]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10003258
mov ecx, esi
call fcn.10017159
mov dword [esi + 0x20], eax
test eax, eax
je 0x10003235
cmp byte [0x1003cde0], 0
je 0x1000322c
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000320a
mov eax, dword [eax]
push dword [esi + 0x24]
push eax
push str.CMemMappedFile__s__created_file_of_size___lu
push edi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000322c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.10017159
pop ecx
jmp 0x10003287
cmp byte [0x1003cde0], 0
je 0x10003287
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10003249
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_CREATING__err_u_
jmp 0x1000326e
test al, al
je 0x10003287
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10003267
mov esi, dword [esi]
push ecx
push esi
push str.CMemMappedFile__s__ERROR_CREATING__SIZE__0_
push edi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10003287
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
pop esi
ret

Function at 0x10003460
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003cde0], 0
push esi
mov esi, ecx
je 0x100034a0
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003477
mov eax, dword [eax]
push edi
push dword [esi + 0x24]
mov edi, 0x1003c7f0
push eax
push str.CMemMappedFile__s__size___lu
push edi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000349f
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov eax, dword [esi + 0x24]
pop esi
ret

Function at 0x100034c0
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003cde0], 0
push esi
mov esi, ecx
je 0x1000350f
lea edx, [esi + 4]
cmp dword [edx + 0x14], 0x10
jb 0x100034d7
mov edx, dword [edx]
cmp dword [esi + 0x20], 0
mov ecx, str.false
push edi
mov eax, str.true
mov edi, 0x1003c7f0
cmove eax, ecx
push eax
push edx
push str.CMemMappedFile__s__isValid___s
push edi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000350e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
cmp dword [esi + 0x20], 0
pop esi
setne al
ret
Function at 0x10003580
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1003cde0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1003c7f0
push edi
mov edi, ecx
je 0x100035d0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100035a5
mov ecx, dword [esi]
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100035b0
mov eax, dword [eax]
push ecx
push eax
push str.CMemMappedFile__s__load_from_file___11S
push ebx
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x100035d0
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x100035da
mov esi, dword [esi]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
push ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, eax
test ecx, ecx
je 0x10003696
mov eax, dword [edi]
mov dword [edi + 0x24], ecx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
test eax, eax
je 0x100036cc
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [edi + 0x24]
push dword [edi + 0x28]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10003646
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x24]
jne 0x10003646
mov bl, 1
jmp 0x10003683
cmp byte [0x1003cde0], bl
je 0x10003683
lea esi, [edi + 4]
cmp dword [esi + 0x14], 0x10
jb 0x10003659
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_READING_FILE__err_u_
mov esi, 0x1003c7f0
push esi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], bl
je 0x10003683
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x100036cc
cmp byte [0x1003cde0], bl
je 0x100036cc
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x100036a9
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ERROR___EMPTY_FILE
mov esi, 0x1003c7f0
push esi
call fcn.10017159
add esp, 0xc
cmp byte [0x1003cde0], bl
je 0x100036cc
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x100036e0
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cde0], 0
push ebx
push edi
mov edi, ecx
mov ebx, 0x1003c7f0
je 0x10003722
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003700
mov eax, dword [eax]
push dword [ebp + 8]
push eax
push str.CMemMappedFile__s__mapForReading_numBytes_u_
push ebx
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10003722
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi]
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003770
cmp byte [edi + 0x30], 0
jne 0x10003753
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x1000376c
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000375e
mov eax, dword [eax]
push eax
push 0
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [edi + 0x20], eax
cmp dword [edi + 0x20], 0
pop esi
je 0x100037ae
push dword [ebp + 8]
push 0
push 0
push 4
push dword [edi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0x28], eax
test eax, eax
jne 0x100037ea
cmp byte [0x1003cde0], al
je 0x100037e8
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x1000379f
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_MAPPING_FILE_FOR_READING__err_u_
jmp 0x100037cf
cmp byte [0x1003cde0], 0
je 0x100037e8
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x100037c2
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_OPENING_FILE_FOR_READING__err_u_
push ebx
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x100037e8
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x100037f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cde0], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, 0x1003c7f0
je 0x10003834
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003814
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapForWriting_numBytes_u_
push esi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10003834
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003883
cmp byte [edi + 0x30], 0
jne 0x10003864
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x1000387d
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000386f
mov eax, dword [eax]
push eax
push 0
push 2
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [edi + 0x20], eax
cmp dword [edi + 0x20], 0
je 0x100038fe
push ebx
push 0
push 0
push 2
push dword [edi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0x28], eax
test eax, eax
je 0x100038db
cmp byte [0x1003cde0], 0
je 0x100038d3
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100038ae
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapped_for_writing__u_bytes
mov esi, 0x1003c7f0
push esi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x100038d3
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi + 0x28]
mov dword [edi + 0x2c], ebx
jmp 0x1000393f
cmp byte [0x1003cde0], 0
je 0x1000393d
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x100038ef
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_MAPPING_FILE_FOR_WRITING__err_u_
jmp 0x1000391f
cmp byte [0x1003cde0], 0
je 0x1000393d
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003912
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_OPENING_FILE_FOR_WRITING__err_u_
mov esi, 0x1003c7f0
push esi
call fcn.10017159
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000393d
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10004020
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x10004083
cmp byte [0x1003cde0], 0
je 0x10004065
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000403f
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__unmap
mov ebx, 0x1003c7f0
push ebx
call fcn.10017159
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10004064
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop ebx
cmp dword [esi + 0x2c], edi
jbe 0x10004077
push dword [esi + 0x2c]
push edi
call dword [sym.imp.kernel32.dll_FlushViewOfFile]
mov dword [esi + 0x2c], edi
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [esi + 0x28], edi
pop edi
pop esi
ret
Function at 0x10004090
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cde0], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov esi, 0x1003c7f0
je 0x100040d7
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100040b4
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
push eax
push str.CMemMappedFile__s__writeBytes_offset_u__length_u_
push esi
call fcn.10017159
add esp, 0x14
cmp byte [0x1003cde0], 0
je 0x100040d7
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
mov ecx, eax
test ecx, ecx
je 0x1000411b
mov eax, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
mov al, 1
jmp 0x10004159
cmp byte [0x1003cde0], 0
je 0x10004157
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000412f
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov esi, 0x1003c7f0
push eax
push str.CMemMappedFile__s__ERROR_WRITING__NO_MEMORY_MAPPED_FILE_
push esi
call fcn.10017159
add esp, 0x14
cmp byte [0x1003cde0], 0
je 0x10004157
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10004bc3
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1002b7da
call fcn.1002a0c8
mov esi, ecx
lea edi, [esi + 0x30]
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
xor edx, edx
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [esi + 0x24]
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x28], ecx
mov dword [ebp - 4], ebx
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x24]
cmp dword [eax + 0xc], ebx
jne 0x10004c2e
cmp dword [eax + 4], ebx
je 0x10004c2e
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov ecx, dword [esi + 0x24]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi + 0x24]
lea eax, [ecx + 0xc]
push eax
push ebx
push ecx
push 0x10004ae0
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x24]
mov dword [ecx + 8], eax
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call fcn.1002a091
ret 4
Function at 0x10004df8
Capabilities:
Resume thread
Terminate thread

Disassembly:
push 0x10
mov eax, 0x1002b794
call fcn.1002a0c8
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10004f3a
cmp dword [eax + 8], 0
je 0x10004f3a
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.10017159
pop ecx
test eax, eax
jne 0x10004e8d
mov esi, ebx
mov dword [ebp - 4], 1
test edi, edi
je 0x10004e5f
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
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.10017159
pop ecx
test eax, eax
je 0x10004e4d
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10004ed8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10004ed8
cmp dword [esi + 0x2c], 0
jne 0x10004ed8
push 0
push ecx
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]
and dword [eax + 8], 0
mov dword [ebp - 4], 2
test edi, edi
je 0x10004f3a
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10004f3a
mov dword [ebp - 4], 3
test edi, edi
je 0x10004eed
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x24]
or dword [ebp - 4], 0xffffffff
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 0x10004f2c
mov dword [esi + 0x20], ebx
jmp 0x10004f3a
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi + 0x20], 1
call fcn.1002a091
ret
Function at 0x10006e5d
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x108
mov eax, 0x1002b97f
call fcn.1002a0fc
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x10006ee3
cmp dword [ebp + 0x20], ebx
je 0x10006ee3
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp - 0x114]
push ecx
push ebx
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x1002f94c
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x10006ee3
push ebx
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.kernel32.dll_CopyFileA]
test eax, eax
je 0x10006edd
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], bl
push eax
mov ecx, edi
call fcn.10002fef
mov bl, 1
jmp 0x10006ee3
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 3
call fcn.10017159
mov al, bl
call fcn.1002a0a6
ret

Function at 0x100071e6
Capabilities:
Delete file
Download url
Get common file path
Receive data

Disassembly:
push 0x108
mov eax, 0x1002b97f
call fcn.1002a0fc
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x1000727a
cmp dword [ebp + 0x20], ebx
je 0x1000727a
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp - 0x114]
push ecx
push ebx
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x1002f94c
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1000727a
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
push ebx
push ebx
lea eax, [ebp - 0x114]
push eax
push esi
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x10007274
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], bl
push eax
mov ecx, edi
call fcn.10002fef
mov bl, 1
jmp 0x1000727a
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 3
call fcn.10017159
mov al, bl
call fcn.1002a0a6
ret
Function at 0x1000cf47
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x1002fa7c
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x1000cf68
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 0x1000cf64
xor eax, eax
ret

Function at 0x1000cf76
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 0x1000cf97
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 0x1000cf93
xor eax, eax
ret

Function at 0x10012003
Capabilities:
Check os version

Disassembly:
push 0x14c
mov eax, 0x1002c29d
call fcn.1002a0fc
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10002a85
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmovae edx, dword [ebp - 0x28]
push edx
lea eax, [ecx + eax*2]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x158]
push ecx
push eax
call fcn.10017159
mov edi, 0x114
lea eax, [ebp - 0x154]
push edi
push ebx
push eax
call sub.VCRUNTIME140.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 0x100120b9
cmp dword [ebp - 0x150], 5
jne 0x100120b9
cmp dword [ebp - 0x14c], ecx
jne 0x100120b9
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10012508
test al, al
je 0x100120b6
xor eax, eax
lea ebx, [eax + 1]
jmp 0x100120ff
xor ecx, ecx
inc ecx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], cl
push eax
call fcn.10017159
pop ecx
test al, al
je 0x100120f3
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10017159
cmp eax, 0xffffffff
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10017159
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
call fcn.10017159
mov al, bl
call fcn.1002a0a6
ret 4
Function at 0x10014c9f
Capabilities:
Parse url

Disassembly:
push 8
mov eax, 0x1002c598
call fcn.1002a133
mov esi, ecx
mov dword [ebp - 0x14], esi
push 7
mov dword [esi], vtable.TFUrlComponents.0
xor edx, edx
pop ecx
xor eax, eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], ecx
mov word [esi + 0x40], ax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x5c], eax
xor eax, eax
mov byte [esi + 0x58], dl
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], ecx
mov dword [ebp - 4], edx
mov word [esi + 0x60], ax
mov dword [esi + 0x88], edx
mov dword [esi + 0x8c], ecx
mov word [esi + 0x78], ax
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], ecx
mov word [esi + 0x90], ax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 4], 0x3c
push 2
pop edx
mov edi, dword [eax + 0x10]
inc edi
mov byte [ebp - 4], 4
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10017159
mov dword [esi + 8], eax
pop ecx
test eax, eax
je 0x10014e6f
lea ebx, [edi + edi]
mov dword [esi + 0xc], edi
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10017159
mov dword [esi + 0x14], eax
pop ecx
test eax, eax
je 0x10014e6f
push ebx
push 0
push eax
mov dword [esi + 0x18], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10017159
mov dword [esi + 0x20], eax
pop ecx
test eax, eax
je 0x10014e6f
push ebx
push 0
push eax
mov dword [esi + 0x24], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10017159
mov dword [esi + 0x28], eax
pop ecx
test eax, eax
je 0x10014e6f
push ebx
push 0
push eax
mov dword [esi + 0x2c], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10017159
mov dword [esi + 0x30], eax
pop ecx
test eax, eax
je 0x10014e6f
push ebx
push 0
push eax
mov dword [esi + 0x34], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10017159
mov dword [esi + 0x38], eax
pop ecx
test eax, eax
je 0x10014e6f
push ebx
push 0
push eax
mov dword [esi + 0x3c], edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x10014e43
mov eax, dword [eax]
lea edx, [esi + 4]
push edx
push dword [esi + 0x5c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x10014e6f
mov ecx, esi
call fcn.10015020
mov ecx, esi
call fcn.100150c1
mov ecx, esi
call fcn.10015137
mov byte [esi + 0x58], 1
cmp byte [esi + 0x58], 0
jne 0x10014e8f
mov ecx, esi
call fcn.100151a5
jmp 0x10014e8f
mov eax, esi
call fcn.1002a091
ret 8