joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010d30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x10037335
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
jb 0x10010d60
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x10010d84
mov edx, eax
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10010d70
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10009090
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10010db4
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x5d1745d
jne 0x10010dc8
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.10035016
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.100076d0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10044610]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x10044610]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x10010ea4
divss xmm0, xmm3
call fcn.10001690
call fcn.100363b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x10010e88
cmp eax, 0x200
jae 0x10010e86
shl eax, 3
cmp eax, ecx
jae 0x10010e88
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10008e50
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10009090
mov edx, dword [eax]
jmp 0x10010ea7
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x10010ed3
mov dword [ecx + eax*8], edi
jmp 0x10010ee5
cmp esi, edx
jne 0x10010edc
mov dword [ecx + eax*8], edi
jmp 0x10010ee9
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10010ee9
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10016a60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
push edi
mov edi, ecx
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x34]
test eax, eax
je 0x10016b4f
mov ecx, dword [eax + 0x14]
mov edx, dword [eax]
add edx, 0x18
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 4]
mov eax, edx
adc ecx, 0
movlpd qword [esp + 0x20], xmm0
or eax, ecx
mov dword [esp + 0x10], ecx
je 0x10016b4f
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x20]
push edi
push 8
lea edi, [esp + 0x20]
mov eax, dword [eax + 0x4c]
push edi
push dword [esp + 0x1c]
mov ecx, dword [eax + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
je 0x10016b4f
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [edi]
push dword [esp + 0x2c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10016b12
push eax
call esi
mov edx, dword [edi + 0x34]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
test edx, edx
je 0x10016b4f
mov eax, dword [edx + 0x14]
mov edx, dword [edx]
push 0
push 8
mov eax, dword [eax + 0x4c]
add edx, 0x18
mov ecx, dword [eax + 8]
lea eax, [esp + 0x28]
push eax
mov eax, dword [edi + 0x34]
mov esi, dword [ecx]
mov eax, dword [eax + 4]
adc eax, 0
push eax
push edx
call dword [esi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10016b60
push eax
call esi
mov dword [edi + 0x20], 0
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10016c36
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
test eax, eax
jg 0x10016b92
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esp + 0xc], eax
je 0x10016b92
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [esp + 0xc], eax
jne 0x10016c36
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xffffffff
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x10016c36
mov eax, dword [edi + 0x10]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 0x10]
push 0xffffffffffffffff
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x10016bec
jle 0x10016be5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov esi, dword [edi + 0x14]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test esi, esi
je 0x10016c29
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10016c29
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10016c29
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x10016c36
push ecx
call fcn.100147e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f190
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037ead
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], 0
mov edi, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], ebx
push ebx
push 4
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
test esi, esi
jg 0x1001f20c
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10007480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x1c
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1001f311
mov ecx, dword [edi]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
cmp eax, dword [ecx + 4]
jne 0x1001f2fe
push 0x18
call fcn.10035016
mov edx, dword [ebp - 0x18]
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj2_class_blackbone::Thread_.0
mov eax, dword [ebp - 0x48]
push eax
push 0
push 0x10005b
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
lea ecx, [edi + 0xc]
mov dword [ebp - 0x24], edi
mov dword [ecx + 8], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 2
cmp ebx, dword [ebp - 0x2c]
je 0x1001f2bf
mov dword [ebx + 4], edi
xor edi, edi
mov dword [ebx], ecx
add ebx, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], ebx
jmp 0x1001f2d2
lea eax, [ebp - 0x28]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.1001f4e0
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test edi, edi
je 0x1001f2fb
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1001f2fb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1001f2fb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1001f238
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
test esi, esi
jle 0x1001f32d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10021360
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
jbe 0x10021391
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [edx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 4], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.100085e0
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x100214c5
nop dword [eax]
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov esi, dword [ebx + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
jb 0x100213ec
mov edx, dword [ebx]
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp - 8], 0x811c9dc5
test esi, esi
je 0x1002141f
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
movzx esi, byte [edx + ebx]
inc edx
xor esi, ecx
imul ecx, esi, 0x1000193
cmp edx, eax
jb 0x10021402
mov eax, dword [ebp + 8]
lea ebx, [edi + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0x18]
and esi, dword [ebp - 8]
mov edx, dword [edx + 0xc]
lea edx, [edx + esi*8]
mov dword [ebp - 8], edx
cmp dword [edx], ecx
jne 0x1002143f
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x100214bb
mov esi, dword [edx + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.10009d40
test al, al
jne 0x10021479
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
cmp ecx, edi
je 0x10021471
mov ebx, dword [edi + 4]
mov dword [ebx], eax
mov esi, dword [eax + 4]
mov dword [esi], ecx
mov edx, dword [ecx + 4]
mov dword [edx], edi
mov dword [ecx + 4], esi
mov dword [eax + 4], ebx
mov dword [edi + 4], edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], edi
jmp 0x100214b8
mov eax, dword [ebp - 8]
cmp dword [eax], esi
je 0x10021498
mov esi, dword [esi + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.10009d40
test al, al
je 0x100214ce
mov eax, dword [ebp - 8]
cmp dword [eax], esi
jne 0x10021480
mov ebx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov dword [esi + 4], edx
mov dword [eax + 4], ebx
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
mov edi, eax
cmp eax, ecx
jne 0x100213d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x100214b8
Function at 0x10021f00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
mov byte [esi + 0x40], 0
test eax, eax
je 0x10021f24
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10021f3b
jle 0x10021f34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
push edi
xor edi, edi
nop
push edi
mov ecx, esi
call fcn.10021cf0
inc edi
cmp edi, 4
jl 0x10021f40
cmp dword [esi + 8], 0
pop edi
je 0x10021fba
call fcn.100017f0
mov ecx, dword [esi]
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov ecx, dword [ecx + 4]
mov dword [ebp - 8], ecx
cmp eax, 0xffffffff
je 0x10021f96
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 4
lea ecx, [ebp - 8]
push ecx
push 0x8005e020
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10021f96
mov eax, dword fs:[0x18]
lea ecx, [esi + 4]
call fcn.10022090
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10022c60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x1056c380], 0
jne 0x10022cb8
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x1056c378], eax
mov eax, dword [ebp - 8]
mov dword [0x1056c37c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1056c380], eax
mov eax, 0x1056c378
mov esp, ebp
pop ebp
ret

Function at 0x10023c80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
mov dword [edi + 4], eax
lea eax, [ebp - 0x24]
push eax
mov dword [edi], vtable.blackbone::Native.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
je 0x10023ce5
mov word [edi + 0xc], 0x101
mov eax, edi
mov dword [edi + 8], 0
mov byte [edi + 0xe], 1
pop edi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [ebp + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov edx, dword [ebp + 8]
sete al
cmp edx, 1
mov byte [edi + 0xc], al
sete al
mov byte [edi + 0xd], al
cmp ecx, 1
jne 0x10023d42
cmp edx, ecx
jne 0x10023d5a
mov dword [edi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jne 0x10023d5a
test edx, edx
jne 0x10023d5a
mov dword [edi + 8], 1
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov byte [edi + 0xf], 1
cmp ecx, 1
setne al
add eax, 2
mov dword [edi + 8], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x100241e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003821d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
call fcn.100093b0
push 0x10
push 0x1003e06c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10001520
mov dword [ebp - 4], 0
call fcn.1001faf0
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10009cd0
mov eax, dword [ebp - 0x10]
push edi
cmp eax, dword [esi + 4]
je 0x10024261
mov esi, dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10024269
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100242a6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002429c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002429c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
push 0
test esi, esi
je 0x100242ec
mov edi, dword [ebp + 8]
push 0x100000
push 0x1000
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebx + 4]
push 0
push dword [ebp + 0x20]
push edi
call esi
test eax, eax
jns 0x10024333
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x1c]
and eax, 1
shl eax, 2
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x10024327
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1002d750
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003821d
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 4], eax
jne 0x1002d78e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 3
jne 0x1002d868
cmp byte [eax + 0xe], 0
jne 0x1002d868
call fcn.100093b0
push 0x12
push 0x1003e6b8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10001520
mov dword [ebp - 4], 0
call fcn.1001faf0
lea ebx, [esi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10009cd0
mov eax, dword [ebp - 0x10]
push ebx
cmp eax, dword [esi + 4]
je 0x1002d811
mov esi, dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1002d817
push dword [edi + 8]
call esi
jmp 0x1002d819
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov edx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setne bl
cmp edx, 0x10
jb 0x1002d855
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d84b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002d84b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp - 0xc]
cmp eax, 0xffffffff
pop edi
pop esi
setne al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002d890
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x958
cmp dword [ebx + 8], 4
push esi
push edi
mov esi, ecx
ja 0x1002da3b
push 0x670
lea eax, [ebp - 0x950]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2d8]
push 0x2cc
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esi]
add esp, 0xc
mov eax, dword [edi + 8]
mov al, byte [eax + 0xe]
mov byte [ebp - 1], al
test al, al
jne 0x1002d90f
mov dword [ebp - 0x920], 0x100010
lea edx, [ebp - 0x950]
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
jmp 0x1002d93d
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x2d8], 0x10010
lea edx, [ebp - 0x2d8]
mov ecx, dword [edi + 8]
add esp, 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push edx
push dword [esi + 8]
call eax
cmp byte [ebp - 1], 0
lea edi, [ebp - 0x8e0]
lea ecx, [ebp - 0x2c0]
cmovne edi, ecx
test eax, eax
js 0x1002da3d
mov eax, dword [ebx + 8]
mov edx, dword [edi]
test eax, eax
jne 0x1002d96f
and edx, 0xfff0fffe
jmp 0x1002d9b7
cmp eax, 1
jne 0x1002d97c
and edx, 0xff0ffffb
jmp 0x1002d9b7
cmp eax, 2
mov dword [ebp - 8], 0xffffffbf
mov ecx, 0xffffffef
mov eax, 0xf3ffffff
cmovne ecx, dword [ebp - 8]
and ecx, edx
cmp dword [ebx + 8], 2
mov edx, 0x3fffffff
cmovne eax, edx
mov edx, 0xfcffffff
and eax, ecx
cmp dword [ebx + 8], 2
mov ecx, 0xcfffffff
cmovne edx, ecx
and edx, eax
mov eax, edx
mov dword [edi], edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x1002d9d6
and edx, 0xfffffeff
mov dword [edi], edx
mov ecx, esi
mov edi, 0xc000071c
call fcn.1002d750
cmp byte [ebp - 1], 0
jne 0x1002d9fe
test al, al
je 0x1002da2e
mov eax, dword [esi]
lea edx, [ebp - 0x950]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
jmp 0x1002da12
test al, al
je 0x1002da2e
mov eax, dword [esi]
lea edx, [ebp - 0x2d8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
push edx
push dword [esi + 8]
call eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x1002da2e
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4