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

Disassembly:
push 4
mov eax, 0x1002c735
call fcn.1002b257
cmp byte [0x1003ce0b], 0
mov edi, 0x1003c820
mov esi, dword [ebp + 8]
jne 0x10002664
cmp byte [0x1003ce0a], 0
je 0x10002693
push esi
push str.CMemMappedFile_CreateWithSize__size_lu_
push edi
call fcn.10021234
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10002683
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10002693
push edi
call fcn.10005ee0
pop ecx
call fcn.10021234
test al, al
je 0x100026ef
call fcn.1001c19e
test al, al
je 0x100026ef
cmp byte [0x1003ce0b], 0
jne 0x100026b7
cmp byte [0x1003ce0a], 0
je 0x100026e6
push esi
push str.CMemMappedFile::CreateWithSize__lu___REMOTE_CREATION_
push edi
call fcn.10021234
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100026d6
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100026e6
push edi
call fcn.10005ee0
pop ecx
push esi
call fcn.1001bf9c
pop ecx
jmp 0x1000274c
cmp byte [0x1003ce0b], 0
jne 0x10002701
cmp byte [0x1003ce0a], 0
je 0x10002730
push esi
push str.CMemMappedFile::CreateWithSize__lu___LOCAL_CREATION_
push edi
call fcn.10021234
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10002720
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10002730
push edi
call fcn.10005ee0
pop ecx
push 0x34
call fcn.10021234
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1000274c
push esi
call fcn.10001ca1
call fcn.1002b220
ret

Function at 0x100028bc
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x1002c7ad
call fcn.1002b28b
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ecx
cmp byte [0x1003ce0b], bl
jne 0x100028e6
cmp byte [0x1003ce0a], bl
je 0x10002923
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100028f0
mov eax, dword [esi]
push ecx
push eax
push str.CMemMappedFile_GetExistingMemoryMappedFile__name_s__size_lu_
mov edi, 0x1003c820
push edi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], bl
je 0x10002914
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], bl
je 0x10002923
push edi
call fcn.10005ee0
pop ecx
push esi
call fcn.10021234
mov edi, eax
pop ecx
test edi, edi
jne 0x10002989
push 0x34
call fcn.10021234
mov edi, eax
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], ebx
test edi, edi
je 0x1000296e
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10002b1a
push dword [ebp - 0x30]
xor ebx, ebx
lea eax, [ebp - 0x28]
inc ebx
mov ecx, edi
push eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x2c], ebx
call fcn.10001bff
mov edi, eax
jmp 0x10002970
mov edi, ebx
test bl, 1
je 0x10002989
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002989
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10021234
pop ecx
pop ecx
mov eax, edi
call fcn.1002b235
ret
Function at 0x100033f0
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x1003ce0b]
push esi
mov esi, ecx
push edi
mov edi, 0x1003c820
test al, al
jne 0x1000340a
cmp byte [0x1003ce0a], al
je 0x10003449
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003415
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__createMemoryMappedFile
push edi
call fcn.10021234
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10003434
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, byte [0x1003ce0b]
test al, al
je 0x10003449
push edi
call fcn.10005ee0
mov al, byte [0x1003ce0b]
pop ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100034e5
mov ecx, esi
call fcn.10021234
mov dword [esi + 0x20], eax
test eax, eax
je 0x100034b9
cmp byte [0x1003ce0b], 0
jne 0x10003474
cmp byte [0x1003ce0a], 0
je 0x100034b1
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000347f
mov eax, dword [eax]
push dword [esi + 0x24]
push eax
push str.CMemMappedFile__s__created_file_of_size___lu
push edi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x100034a1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100034b1
push edi
call fcn.10005ee0
pop ecx
push esi
call fcn.10021234
jmp 0x1000352b
cmp byte [0x1003ce0b], 0
jne 0x100034cb
cmp byte [0x1003ce0a], 0
je 0x1000352c
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x100034d6
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_CREATING__err_u_
jmp 0x10003503
test al, al
jne 0x100034f1
cmp byte [0x1003ce0a], al
je 0x1000352c
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x100034fc
mov esi, dword [esi]
push ecx
push esi
push str.CMemMappedFile__s__ERROR_CREATING__SIZE__0_
push edi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x1000351c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x1000352c
push edi
call fcn.10005ee0
pop ecx
pop edi
pop esi
ret

Function at 0x10003670
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003ce0b], 0
push esi
mov esi, ecx
jne 0x10003685
cmp byte [0x1003ce0a], 0
je 0x100036c9
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003690
mov eax, dword [eax]
push edi
push dword [esi + 0x24]
mov edi, 0x1003c820
push eax
push str.CMemMappedFile__s__size___lu
push edi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x100036b8
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100036c8
push edi
call fcn.10005ee0
pop ecx
pop edi
mov eax, dword [esi + 0x24]
pop esi
ret
Function at 0x100036e0
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003ce0b], 0
push esi
mov esi, ecx
jne 0x100036f5
cmp byte [0x1003ce0a], 0
je 0x10003748
lea ecx, [esi + 4]
cmp dword [ecx + 0x14], 0x10
jb 0x10003700
mov ecx, dword [ecx]
cmp dword [esi + 0x20], 0
mov edx, str.false
push edi
mov eax, str.true
mov edi, 0x1003c820
cmove eax, edx
push eax
push ecx
push str.CMemMappedFile__s__isValid___s
push edi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003737
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003747
push edi
call fcn.10005ee0
pop ecx
pop edi
cmp dword [esi + 0x20], 0
pop esi
setne al
ret
Function at 0x100037b0
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1003ce0b], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1003c820
push edi
mov edi, ecx
jne 0x100037d4
cmp byte [0x1003ce0a], 0
je 0x10003819
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100037de
mov ecx, dword [esi]
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100037e9
mov eax, dword [eax]
push ecx
push eax
push str.CMemMappedFile__s__load_from_file___11S
push ebx
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003809
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003819
push ebx
call fcn.10005ee0
pop ecx
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x10003823
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 0x100038f6
mov eax, dword [edi]
mov dword [edi + 0x24], ecx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
test eax, eax
je 0x10003943
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 0x1000388f
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x24]
jne 0x1000388f
mov bl, 1
jmp 0x100038e3
cmp byte [0x1003ce0b], bl
jne 0x1000389f
cmp byte [0x1003ce0a], bl
je 0x100038e3
lea esi, [edi + 4]
cmp dword [esi + 0x14], 0x10
jb 0x100038aa
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, 0x1003c820
push esi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], bl
je 0x100038d4
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], bl
je 0x100038e3
push esi
call fcn.10005ee0
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
jmp 0x10003943
cmp byte [0x1003ce0b], bl
jne 0x10003906
cmp byte [0x1003ce0a], bl
je 0x10003943
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003911
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ERROR___EMPTY_FILE
mov esi, 0x1003c820
push esi
call fcn.10021234
add esp, 0xc
cmp byte [0x1003ce0a], bl
je 0x10003934
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], bl
je 0x10003943
push esi
call fcn.10005ee0
pop ecx
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 0x10003960
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003ce0b], 0
push ebx
push edi
mov edi, ecx
mov ebx, 0x1003c820
jne 0x1000397e
cmp byte [0x1003ce0a], 0
je 0x100039bb
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003989
mov eax, dword [eax]
push dword [ebp + 8]
push eax
push str.CMemMappedFile__s__mapForReading_numBytes_u_
push ebx
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x100039ab
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100039bb
push ebx
call fcn.10005ee0
pop ecx
mov eax, dword [edi]
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003a09
cmp byte [edi + 0x30], 0
jne 0x100039ec
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
jmp 0x10003a05
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100039f7
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 0x10003a4f
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 0x10003aa4
cmp byte [0x1003ce0b], al
jne 0x10003a35
cmp byte [0x1003ce0a], al
je 0x10003aa2
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003a40
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 0x10003a79
cmp byte [0x1003ce0b], 0
jne 0x10003a61
cmp byte [0x1003ce0a], 0
je 0x10003aa2
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003a6c
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.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003a92
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003aa2
push ebx
call fcn.10005ee0
pop ecx
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10003ab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003ce0b], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, 0x1003c820
jne 0x10003ad2
cmp byte [0x1003ce0a], 0
je 0x10003b0d
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003add
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapForWriting_numBytes_u_
push esi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003afd
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003b0d
push esi
call fcn.10005ee0
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003b60
cmp byte [edi + 0x30], 0
jne 0x10003b3d
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
jmp 0x10003b56
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003b48
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 0x10003c00
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 0x10003bd4
cmp byte [0x1003ce0b], 0
jne 0x10003b89
cmp byte [0x1003ce0a], 0
je 0x10003bc9
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003b94
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapped_for_writing__u_bytes
mov esi, 0x1003c820
push esi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003bb9
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003bc9
push esi
call fcn.10005ee0
pop ecx
mov eax, dword [edi + 0x28]
mov dword [edi + 0x2c], ebx
jmp 0x10003c5a
cmp byte [0x1003ce0b], 0
jne 0x10003be6
cmp byte [0x1003ce0a], 0
je 0x10003c58
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003bf1
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 0x10003c2a
cmp byte [0x1003ce0b], 0
jne 0x10003c12
cmp byte [0x1003ce0a], 0
je 0x10003c58
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003c1d
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, 0x1003c820
push esi
call fcn.10021234
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003c48
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003c58
push esi
call fcn.10005ee0
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100041e0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x1000425c
cmp byte [0x1003ce0b], 0
jne 0x100041fd
cmp byte [0x1003ce0a], 0
je 0x1000423e
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10004208
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__unmap
mov ebx, 0x1003c820
push ebx
call fcn.10021234
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x1000422d
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x1000423d
push ebx
call fcn.10005ee0
pop ecx
pop ebx
cmp dword [esi + 0x2c], edi
jbe 0x10004250
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 0x10004270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003ce0b], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov esi, 0x1003c820
jne 0x10004292
cmp byte [0x1003ce0a], 0
je 0x100042d0
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000429d
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.10021234
add esp, 0x14
cmp byte [0x1003ce0a], 0
je 0x100042c0
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100042d0
push esi
call fcn.10005ee0
pop ecx
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
mov ecx, eax
test ecx, ecx
je 0x10004314
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 [0x1002f5c8]
mov ecx, edi
call esi
mov al, 1
jmp 0x1000436b
cmp byte [0x1003ce0b], 0
jne 0x10004326
cmp byte [0x1003ce0a], 0
je 0x10004369
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10004331
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov esi, 0x1003c820
push eax
push str.CMemMappedFile__s__ERROR_WRITING__NO_MEMORY_MAPPED_FILE_
push esi
call fcn.10021234
add esp, 0x14
cmp byte [0x1003ce0a], 0
je 0x10004359
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10004369
push esi
call fcn.10005ee0
pop ecx
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10005027
Capabilities:
Resume thread
Terminate thread

Disassembly:
push 0x10
mov eax, 0x1002c905
call fcn.1002b257
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10005169
cmp dword [eax + 8], 0
je 0x10005169
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.10021234
pop ecx
test eax, eax
jne 0x100050bc
mov esi, ebx
mov dword [ebp - 4], 1
test edi, edi
je 0x1000508e
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.10021234
pop ecx
test eax, eax
je 0x1000507c
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10005107
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10005107
cmp dword [esi + 0x2c], 0
jne 0x10005107
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 0x10005169
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10005169
mov dword [ebp - 4], 3
test edi, edi
je 0x1000511c
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 0x1000515b
mov dword [esi + 0x20], ebx
jmp 0x10005169
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi + 0x20], 1
call fcn.1002b220
ret
Function at 0x10014de8
Capabilities:
Parse url

Disassembly:
push 0xc
mov eax, 0x1002d84e
call fcn.1002b2c2
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 [ebp - 4], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], ecx
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
add eax, 0x10
mov dword [esi + 4], 0x3c
mov dword [ebp - 0x18], eax
push 2
pop edx
mov edi, dword [eax]
inc edi
mov byte [ebp - 4], 4
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10021234
mov dword [esi + 8], eax
pop ecx
test eax, eax
je 0x10014fbe
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.10021234
mov dword [esi + 0x14], eax
pop ecx
test eax, eax
je 0x10014fbe
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.10021234
mov dword [esi + 0x20], eax
pop ecx
test eax, eax
je 0x10014fbe
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.10021234
mov dword [esi + 0x28], eax
pop ecx
test eax, eax
je 0x10014fbe
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.10021234
mov dword [esi + 0x30], eax
pop ecx
test eax, eax
je 0x10014fbe
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.10021234
mov dword [esi + 0x38], eax
pop ecx
test eax, eax
je 0x10014fbe
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
jb 0x10014f8e
mov eax, dword [eax]
lea ecx, [esi + 4]
push ecx
mov ecx, dword [ebp - 0x18]
push dword [esi + 0x5c]
push dword [ecx]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x10014fbe
mov ecx, esi
call fcn.100150ca
mov ecx, esi
call fcn.10015160
mov ecx, esi
call fcn.100151cf
mov byte [esi + 0x58], 1
cmp byte [esi + 0x58], 0
jne 0x10014fde
mov ecx, esi
call fcn.10015236
jmp 0x10014fde
mov eax, esi
call fcn.1002b220
ret 8