joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e9f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x100e9fa8
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100e9f80
cmp byte [0x101fc342], 0
jne 0x100e9f8b
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.file_handler_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
jmp 0x100ea092
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100ea02f
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
cmp dword [ebp - 8], esi
jb 0x100e9ff1
test ebx, ebx
jne 0x100ea083
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x101fc34c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x100ea014
cmp byte [0x101fc342], 0
jne 0x100ea01f
call fcn.100e0200
mov ebx, dword [0x101fc34c]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_write_data._Error_code____d
jmp 0x100ea06b
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x101fc34c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x100ea052
cmp byte [0x101fc342], 0
jne 0x100ea05d
call fcn.100e0200
mov ebx, dword [0x101fc34c]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.file_pointer_set_error____d
mov esi, dword [esi + 0x24]
mov ecx, esi
push 0x101ace8c
push ebx
call dword [0x1019a4f8]
call esi
add esp, 0x10
xor ebx, ebx
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 1
je 0x100ea0b6
push 0x41
push str.Failed_to_write_the_segment_in_the_file_which_is_to_be_downloaded
lea ecx, [edi + 0x30]
call fcn.10001e80
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100ea0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x100ea128
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ea100
cmp byte [0x101fc342], 0
jne 0x100ea10b
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.file_handler_to_read_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
jmp 0x100ea234
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100ea1cd
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
jb 0x100ea176
test eax, eax
jne 0x100ea223
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x101fc34c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x100ea199
cmp byte [0x101fc342], 0
jne 0x100ea1a4
call fcn.100e0200
mov ebx, dword [0x101fc34c]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x101ace8c
push ebx
call dword [0x1019a4f8]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x100ea225
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x101fc34c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x100ea1f0
cmp byte [0x101fc342], 0
jne 0x100ea1fb
call fcn.100e0200
mov ebx, dword [0x101fc34c]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.file_pointer_set_error____d
push 0x101ace8c
push ebx
call dword [0x1019a4f8]
call esi
add esp, 0x10
xor esi, esi
jmp 0x100ea225
mov esi, eax
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 1
je 0x100ea258
push 0x33
push str.Failed_to_read_the_segment_from_the_downloaded_file
lea ecx, [edi + 0x30]
call fcn.10001e80
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100ebcf0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x24
jne 0x100ebd3e
cmp eax, 0x2f76
je 0x100ebd4b
cmp eax, 0x7a
je 0x100ebd60
push eax
mov ecx, edi
call fcn.100eb360
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x100ebdb6
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ebd79
cmp byte [0x101fc342], al
jne 0x100ebd84
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x101fb260
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1015d7c1
mov esi, eax
add esp, 8
test esi, esi
jne 0x100ebe42
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ebdee
cmp byte [0x101fc342], al
jne 0x100ebdf9
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.failed_to_allocate_memory
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.10001dd0
push 0
push 0x14
mov ecx, edi
call fcn.100eb1c0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x100ebe88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.100eb360
push esi
call fcn.1015c7b6
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
push esi
call fcn.10001d90
push esi
call fcn.1015c7b6
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 8
Function at 0x100ebeb0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
mov esi, ecx
push 0
push 0x16
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100ebf65
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1015cb13
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push 0
push eax
push edi
push 0
push 0x16
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x100ebf58
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ebf34
cmp byte [0x101fc342], 0
jne 0x100ebf3f
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push edi
push str.Header_contents:__n_s
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
test edi, edi
je 0x100ebf65
push edi
call fcn.1015c7b6
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
Function at 0x100ece90
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp byte [edi + 0x20], 0
je 0x100ecfff
cmp byte [edi + 0x28], 0
je 0x100ecfff
lea eax, [esp + 0x10]
mov dword [esi], 0
push eax
push dword [edi + 0xb0]
mov dword [esp + 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x100ecf4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.100eb360
mov edi, dword [0x101fc34c]
test edi, edi
je 0x100ecf07
cmp byte [0x101fc342], 0
jne 0x100ecf12
call fcn.100e0200
mov edi, dword [0x101fc34c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x101ace8c
push edi
call dword [0x1019a4f8]
call esi
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x100ecf76
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
push ecx
push 0
push dword [ebx]
call fcn.10160390
add esp, 0xc
push esi
push dword [esp + 0x14]
push dword [ebx]
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x100ecfe0
call fcn.100e04e0
push str.Error__u_in_WinHttpReadData._n
push 0x101ace8c
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.100eb360
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ed012
cmp byte [0x101fc342], 0
jne 0x100ed01d
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.downloader_is_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
push 0x101ace8c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001e80
push 0
push 0x13
mov ecx, edi
call fcn.100eb1c0
mov ecx, dword [esp + 0x14]
mov eax, 3
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100ed080
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
cmp byte [edi + 0x20], 0
je 0x100ed13c
cmp byte [edi + 0x28], 0
je 0x100ed13c
mov esi, dword [ebp + 0x18]
cmp esi, dword [ebp + 0x14]
mov dword [ebx], 0
cmova esi, dword [ebp + 0x14]
test esi, esi
jne 0x100ed0ca
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0
push dword [ecx]
call fcn.10160390
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push esi
push dword [eax]
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x100ed12a
call fcn.100e04e0
push str.Error__u_in_WinHttpReadData._n
push 0x101ace8c
push eax
mov edx, dword [eax]
mov esi, dword [edx + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.100eb360
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ed14f
cmp byte [0x101fc342], 0
jne 0x100ed15a
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.downloader_is_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
push 0x101ace8c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001e80
push 0
push 0x13
mov ecx, edi
call fcn.100eb1c0
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100ee0d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 0x28], 0
je 0x100ee285
lea eax, [ebx + 0x10]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x2c]
add ebx, 0x2c
mov dword [ebp - 0x1c], ebx
mov edi, dword [esi]
mov dword [ebp - 0x14], edi
cmp edi, esi
je 0x100ee15a
nop dword [eax]
mov edi, dword [edi + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
lea ecx, [ebp - 0x14]
call fcn.1002d420
mov esi, dword [ebx]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
cmp edi, esi
jne 0x100ee130
mov edi, dword [esi]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], edi
cmp edi, esi
je 0x100ee235
mov ecx, dword [edi + 0x14]
call fcn.100f05b0
mov esi, dword [edi + 0x14]
test esi, esi
je 0x100ee216
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x24]
mov dword [esi], vtable.WorkerThread.0
test eax, eax
je 0x100ee1fa
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100ee1ea
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ee1b2
cmp byte [0x101fc342], 0
jne 0x100ee1c0
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ecx]
push eax
push dword [esi + 0x38]
mov ebx, dword [ebx + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push ecx
mov ecx, ebx
call dword [0x1019a4f8]
call ebx
add esp, 0x10
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [ebp - 0x1c]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x3c
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.1015cb05
add esp, 8
lea ecx, [ebp - 0x14]
mov dword [edi + 0x14], 0
call fcn.1002d420
mov esi, dword [ebx]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
cmp edi, esi
jne 0x100ee168
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x100ee260
nop
push dword [edi + 8]
mov ecx, ebx
push ebx
call fcn.100ee500
mov eax, edi
mov edi, dword [edi]
push 0x1c
push eax
call fcn.1015cb05
add esp, 8
cmp byte [edi + 0xd], 0
je 0x100ee240
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebx + 4], 0
mov dword [eax], 0
mov byte [eax + 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
Function at 0x100f0260
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
jne 0x100f02c7
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100f028d
cmp byte [0x101fc342], 0
jne 0x100f0298
call fcn.100e0200
mov ecx, dword [0x101fc34c]
push str.Thread_is_not_initialized__so_it_cannot_run
mov eax, dword [ecx]
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x24], 0
mov dword [edi + 0x34], 1
je 0x100f0312
mov eax, dword [0x101fc34c]
test eax, eax
je 0x100f02e6
cmp byte [0x101fc342], 0
jne 0x100f02f0
call fcn.100e0200
mov eax, dword [0x101fc34c]
mov esi, dword [eax]
push dword [edi + 0x38]
push str.thread___d__is_already_running._Closing_it_first
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov ecx, edi
call fcn.100f05b0
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x100f0050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x100f0356
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100f0341
cmp byte [0x101fc342], al
jne 0x100f034c
call fcn.100e0200
mov ecx, dword [0x101fc34c]
push str.failed_to_create_a_new_thread._Fatal_Error
jmp 0x100f029d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x100f03bf
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100f0375
cmp byte [0x101fc342], 0
jne 0x100f0380
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.thread_failed_to_resumed._fatal_error
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x38], eax
xor ecx, ebp
pop edi
mov al, 1
pop esi
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
Function at 0x100f05b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 4], 0
je 0x100f0746
lea eax, [ebx + 0xc]
mov dword [ebx + 0x34], 2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x100f06c7
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
mov eax, dword [ebx + 0x28]
xor ecx, ecx
cmp dword [eax + 8], 3
je 0x100f06c7
mov edx, eax
cmp dword [eax + 8], 5
je 0x100f06c7
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x12c
jne 0x100f0669
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100f062a
cmp byte [0x101fc342], 0
jne 0x100f0638
call fcn.100e0200
mov eax, dword [ebx + 0x28]
mov ecx, dword [0x101fc34c]
mov esi, dword [ecx]
push dword [eax + 4]
push str.forcing_the_job___d__to_terminate.
mov esi, dword [esi + 0x14]
push ecx
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov edi, dword [ebx + 0x28]
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
jmp 0x100f0671
cmp ecx, 0x3e8
je 0x100f068d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x28]
mov edx, eax
mov ecx, dword [ebp - 4]
cmp dword [eax + 8], 3
jne 0x100f0601
jmp 0x100f06c7
mov eax, dword [0x101fc34c]
test eax, eax
je 0x100f069f
cmp byte [0x101fc342], 0
jne 0x100f06ac
call fcn.100e0200
mov edx, dword [ebx + 0x28]
mov eax, dword [0x101fc34c]
mov esi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
mov esi, dword [esi + 0x14]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0xc
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x100f073f
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x100f072f
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100f06fd
cmp byte [0x101fc342], 0
jne 0x100f0708
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov esi, dword [ecx]
push edi
push dword [ebx + 0x38]
mov esi, dword [esi + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push ecx
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x10
push 0
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x34], 3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f59e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100f5ad4
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100f5ac3
jg 0x100f5a20
test edx, edx
je 0x100f5ac3
nop dword [eax]
call fcn.100e4470
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100f5a74
jg 0x100f5a37
test esi, esi
je 0x100f5a74
cmp ebx, eax
jg 0x100f5a47
jl 0x100f5a41
cmp edi, esi
jae 0x100f5a47
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
push dword [eax]
call fcn.1015f820
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x100f5aa7
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax]
mov eax, dword [esp + 0xc]
push ecx
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, dword [esp + 0x10]
call esi
cmp eax, 0xffffffff
je 0x100f5abd
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x100f5a20
jl 0x100f5abd
test edi, edi
jne 0x100f5a20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x100f5af6
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x100f5af8
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x100f5b76
jg 0x100f5b0b
test esi, esi
je 0x100f5b76
test eax, eax
jl 0x100f5b50
jg 0x100f5b15
test ebx, ebx
je 0x100f5b50
cmp edi, eax
jg 0x100f5b25
jl 0x100f5b1f
cmp esi, ebx
jae 0x100f5b25
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1015f820
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x100f5b53
mov edx, dword [ebp + 8]
test edi, edi
jl 0x100f5b76
jg 0x100f5b5d
test esi, esi
je 0x100f5b76
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x100f5b76
push eax
push esi
push 1
push edx
call fcn.10174037
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc