joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x69b710]
mov edi, dword [esp + 0x70]
mov eax, dword [eax]
test eax, eax
je 0x51f0df
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x7c]
mov esi, 1
add ecx, eax
jno 0x51f0c2
mov eax, esi
mov edx, 3
add esp, 0x60
pop esi
pop edi
pop ebx
ret
js 0x51f245
mov edx, dword [esp + 0x74]
mov ebx, edx
sub ebx, ecx
jbe 0x51f1dd
add eax, ebx
jo 0x51f0b4
jmp 0x51f1e7
movzx eax, byte [0x69b374]
test al, al
je 0x51f0a5
movzx ecx, al
cmp ecx, 1
je 0x51f0fd
cmp ecx, 2
jne 0x51f22b
mov al, 2
movzx eax, al
push eax
push dword [0x69b36c]
call fcn.005313d0
add esp, 8
test al, al
je 0x51f0a5
mov eax, dword [0x69b36c]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x51f25b
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
lea ebx, [esp + 0x1c]
mov dword [esp + 0x48], 0x6289c8
mov dword [esp + 0x4c], 3
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], ebx
lea ebx, [esp + 0x48]
mov dword [esp + 0x54], 3
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0x24]
lea esi, [esp + 0x74]
movlps qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], esi
mov esi, esp
mov dword [esp + 0x20], fcn.00598a80
mov dword [esp + 0x24], esi
lea esi, [esp + 0x34]
mov dword [esp + 0x28], fcn.0050f690
mov dword [esp + 4], esi
lea esi, [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x628574
mov dword [esp], edx
lea edx, [edi + 0x7c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], fcn.00598a80
push ecx
push eax
call fcn.00531b00
add esp, 8
jmp 0x51f0a5
sub ecx, edx
sub eax, ecx
jo 0x51f0b4
mov dword [edi + 0x24], eax
xor esi, esi
mov ecx, dword [edi + 0x20]
sub eax, ecx
jle 0x51f0b4
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
cmp eax, edx
jl 0x51f0b4
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edx], 0
test eax, eax
je 0x51f0b4
push ecx
call dword [eax + 4]
add esp, 4
jmp 0x51f0b4
push 0x69b36c
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x51f0fd
jmp 0x51f0a5
push 0x6225e0
push 0xf
push 0x6225d0
call fcn.0059d660
add esp, 0xc
ud2
push 0x62897c
push 0x22
push str.FieldSet_corrupted__this_is_a_bug_
call fcn.005a0a40
add esp, 0xc
ud2
Function at 0x531890
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x531bd0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x5318d4
dec eax
jmp 0x5318e8
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push ecx
call fcn.0059fef0
add esp, 4
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push 1
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x531935
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
cmp eax, 2
je 0x531935
test eax, eax
je 0x531935
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
lock dec dword [eax]
jne 0x531935
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
add eax, 0x10
push eax
call fcn.0042de60
add esp, 4
push 4
push 0x1c
push dword [ebp - 0x24]
call fcn.00407080
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
test eax, eax
je 0x531957
dec eax
mov dword [ebp - 0x10], 1
jmp 0x53196b
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 1
push ecx
call fcn.0059fef0
add esp, 4
mov byte [ebp - 0x1d], 0
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x531be0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
test eax, eax
je 0x531d18
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x531c0d
cmp dword [eax + 4], 0
mov esi, eax
jne 0x531d13
mov eax, dword [edi]
test eax, eax
je 0x531d36
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x531d4f
mov esi, eax
test eax, eax
jne 0x531c67
movzx eax, byte [0x69b8b9]
push 4
push 0x1c
call fcn.00407070
add esp, 8
test eax, eax
je 0x531d68
mov dword [eax], edi
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x531d5a
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ebx, dword [esp + 0x30]
movaps xmm0, xmmword [0x638310]
lea ecx, [esi + 4]
mov al, 1
test ebx, ebx
je 0x531ca5
cmp dword [ebx], 0
mov dword [ebx], 0
je 0x531ca5
mov ah, byte [ebx + 0x17]
movsd xmm0, qword [ebx + 4]
mov edi, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov al, byte [ebx + 0x14]
movzx ebx, word [ebx + 0x15]
mov byte [esp + 2], ah
mov word [esp], bx
jmp 0x531ca5
movsd xmm1, qword [ecx + 0x10]
movsd qword [esp + 0x14], xmm1
movsd xmm1, qword [ecx]
movsd xmm2, qword [ecx + 8]
movsd qword [esp + 0xc], xmm2
movsd qword [esp + 4], xmm1
mov dword [esi + 4], 1
movlps qword [esi + 8], xmm0
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edx
mov byte [esi + 0x18], al
movzx eax, byte [esp + 2]
mov byte [esi + 0x1b], al
movzx eax, word [esp]
mov word [esi + 0x19], ax
cmp dword [esp + 4], 0
je 0x531d13
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x531d13
test eax, eax
je 0x531d13
mov eax, dword [esp + 0x10]
lock dec dword [eax]
jne 0x531d13
lea eax, [esp + 0x10]
push eax
call fcn.0042de60
add esp, 4
add esi, 8
jmp 0x531d51
push edi
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x531c01
jmp 0x531c0d
push edi
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x531c28
xor esi, esi
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
ret
push edi
call fcn.0059fef0
add esp, 4
jmp 0x531c5f
push 0x1c
push 4
call fcn.005a08c0
add esp, 8
ud2
Function at 0x533760
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x536ac0
mov dword [ebp - 0x20], ecx
add ecx, 0x30
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x10], 5
push ecx
call fcn.00549750
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5337c3
shl eax, 3
push 4
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call fcn.00407080
add esp, 0xc
mov eax, dword [esi + 0x64]
test eax, eax
je 0x5337e5
lock dec dword [eax]
jne 0x5337e5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
add eax, 0x64
push eax
call fcn.0053c320
add esp, 4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x68], 0
je 0x533800
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
lea ecx, [eax + 0x68]
call fcn.005335b0
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x5338d1
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x40]
test edx, edx
mov dword [ebp - 0x28], eax
je 0x5338ae
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
movdqa xmm0, xmmword [eax]
lea esi, [eax + 0x10]
mov edi, eax
pmovmskb ebx, xmm0
not ebx
nop word cs:[eax + eax]
nop
test bx, bx
mov dword [ebp - 0x24], edx
jne 0x533872
nop dword [eax + eax]
movdqa xmm0, xmmword [esi]
add edi, 0xffffff00
add esi, 0x10
pmovmskb ebx, xmm0
cmp ebx, 0xffff
je 0x533850
not ebx
mov dword [ebp - 0x10], 2
tzcnt eax, ebx
mov ecx, edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x10], 2
shl eax, 4
sub ecx, eax
add ecx, 0xfffffff4
call fcn.005335b0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
lea eax, [ecx - 1]
and eax, ecx
mov ecx, dword [ebp - 0x2c]
dec edx
mov ebx, eax
jne 0x533840
mov eax, ecx
mov esi, dword [ebp - 0x20]
shl eax, 4
add ecx, eax
add ecx, 0x21
je 0x5338d1
mov edx, dword [ebp - 0x28]
sub edx, eax
add edx, 0xfffffff0
push 0x10
push ecx
push edx
call fcn.00407080
add esp, 0xc
mov eax, dword [esi + 0x20]
lock dec dword [eax]
jne 0x5338ef
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
add eax, 0x20
push eax
call fcn.0042de60
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x533919
lock dec dword [eax]
jne 0x533919
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
add eax, 0x80
push eax
call fcn.0042de60
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x88]
test eax, eax
je 0x533941
lock dec dword [eax]
jne 0x533941
add ecx, 0x88
mov dword [ebp - 0x10], 0xffffffff
push ecx
call fcn.0042de60
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x537a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x537a9b
mov eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
mov edx, eax
xor edx, 0x80
or edx, ebx
jne 0x537ac2
mov dword [ecx + 0x18], 0
cmp dword [ecx], 0
je 0x537c3a
mov ebp, dword [ecx + 4]
mov dword [ecx + 4], 0
mov esi, 1
test ebp, ebp
mov ecx, ebp
jne 0x537b5f
jmp 0x537c3a
mov edx, dword [ecx + 8]
mov dword [esp], 1
mov dword [esp + 0xc], edx
add edx, eax
add eax, 1
movzx edx, dl
adc ebx, 0
mov esi, eax
mov ebp, dword [edi + edx*4]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], eax
xor esi, 0x80
mov edx, dword [ecx]
or esi, ebx
mov esi, ebp
mov dword [esp + 4], edx
je 0x537b43
mov dword [esp], edi
mov edi, dword [esp + 0xc]
mov esi, ebp
mov edx, eax
mov dword [esp + 8], eax
nop word [eax + eax]
mov eax, esi
mov esi, dword [esp]
lea ecx, [edx + edi]
add edx, 1
movzx ecx, cl
adc ebx, 0
mov esi, dword [esi + ecx*4]
mov ecx, edx
xor ecx, 0x80
or ecx, ebx
mov dword [eax + 4], esi
jne 0x537b10
mov eax, 0x81
mov ecx, dword [esp + 0x28]
sub eax, dword [esp + 8]
mov dword [esp], eax
cmp dword [esp + 4], 0
je 0x537b5a
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x537b5a
mov dword [esi + 4], ecx
mov esi, dword [esp]
inc esi
jmp 0x537b5f
mov ecx, esi
mov esi, dword [esp]
mov ebx, dword [esp + 0x24]
mov dword [esp], ecx
lea edi, [ebx + 0x90]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov ecx, dword [0x69b824]
mov eax, dword [ecx]
test eax, 0x7fffffff
jne 0x537c42
movzx eax, byte [ebx + 0x94]
cmp byte [ebx + 0xac], 0
lea edx, [ebx + 0x94]
je 0x537bf0
mov eax, dword [ecx]
test eax, 0x7fffffff
jne 0x537c70
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x537bc6
test esi, esi
mov ebp, esi
je 0x537c3a
mov eax, 0xffffffc0
mov esi, dword [ebp + 4]
lock xadd dword [ebp], eax
cmp eax, 0x3f
jbe 0x537ca4
and eax, 0xffffffc0
cmp eax, 0x40
jne 0x537bc0
mov eax, dword [ebp + 8]
push ebp
call dword [eax + 8]
add esp, 4
jmp 0x537bc0
mov dword [esp + 4], edx
mov al, 1
mov edx, dword [ebx + 0xa8]
lea ecx, [ebx + 0xa4]
test edx, edx
lea edx, [edx + 4]
cmove edx, ecx
mov dword [edx], ebp
mov edx, dword [esp]
mov dword [ebx + 0xa8], edx
add esi, dword [ebx + 0xe8]
test al, al
mov dword [ebx + 0xe8], esi
je 0x537c33
mov eax, dword [0x69b824]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x537c92
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0059fdf0
movzx ecx, byte [ebx + 0x94]
cmp byte [ebx + 0xac], 0
lea edx, [ebx + 0x94]
je 0x537c89
mov ecx, dword [0x69b824]
test al, al
jne 0x537b9c
jmp 0x537ba9
mov esi, edx
call fcn.0059fdf0
test al, al
jne 0x537ba9
mov ecx, esi
mov byte [esi], 1
jmp 0x537ba9
mov dword [esp + 4], edx
jmp 0x537bf6
call fcn.0059fdf0
test al, al
jne 0x537c33
mov eax, dword [esp + 4]
mov byte [eax], 1
jmp 0x537c33
push 0x639994
push 0x27
push str.assertion_failed:_prev.ref_count_____1
call fcn.005a0b60
add esp, 0xc
ud2
Function at 0x53a730
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
nop word cs:[eax + eax]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x53a740
test al, 1
je 0x53a757
test al, 2
jne 0x53a76d
xor eax, 3
ret
push 0x6397e4
push 0x23
push str.assertion_failed:_prev.is_running__
call fcn.005a0b60
add esp, 0xc
ud2
push 0x63981c
push 0x25
push 0x6397f4
call fcn.005a0b60
add esp, 0xc
ud2
Function at 0x53bd70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x53cd00
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x10], 5
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
add eax, 0x30
mov dword [ebp - 0x24], eax
push eax
call fcn.00549750
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x53bdd9
shl eax, 3
push 4
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
call fcn.00407080
add esp, 0xc
mov eax, dword [esi + 0x64]
test eax, eax
je 0x53bdfb
lock dec dword [eax]
jne 0x53bdfb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
add eax, 0x64
push eax
call fcn.0053c320
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
lea ecx, [eax + 0x68]
call fcn.0053b110
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x53bee1
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x40]
test edx, edx
mov dword [ebp - 0x28], eax
je 0x53bebe
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
movdqa xmm0, xmmword [eax]
lea esi, [eax + 0x10]
mov edi, eax
pmovmskb ebx, xmm0
not ebx
nop word cs:[eax + eax]
nop dword [eax + eax]
test bx, bx
mov dword [ebp - 0x24], edx
jne 0x53be82
nop dword [eax + eax]
movdqa xmm0, xmmword [esi]
add edi, 0xffffff00
add esi, 0x10
pmovmskb ebx, xmm0
cmp ebx, 0xffff
je 0x53be60
not ebx
mov dword [ebp - 0x10], 2
tzcnt eax, ebx
mov ecx, edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x10], 2
shl eax, 4
sub ecx, eax
add ecx, 0xfffffff4
call fcn.005335b0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
lea eax, [ecx - 1]
and eax, ecx
mov ecx, dword [ebp - 0x2c]
dec edx
mov ebx, eax
jne 0x53be50
mov eax, ecx
mov esi, dword [ebp - 0x20]
shl eax, 4
add ecx, eax
add ecx, 0x21
je 0x53bee1
mov edx, dword [ebp - 0x28]
sub edx, eax
add edx, 0xfffffff0
push 0x10
push ecx
push edx
call fcn.00407080
add esp, 0xc
mov eax, dword [esi + 0x20]
lock dec dword [eax]
jne 0x53beff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
add eax, 0x20
push eax
call fcn.0042de60
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x53bf29
lock dec dword [eax]
jne 0x53bf29
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
add eax, 0x80
push eax
call fcn.0042de60
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x53bf51
lock dec dword [eax]
jne 0x53bf51
lea eax, [esi + 0x88]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.0042de60
add esp, 4
cmp esi, 0xffffffff
je 0x53bf6c
lock dec dword [esi + 4]
jne 0x53bf6c
push 8
push 0xa8
push esi
call fcn.00407080
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x54d5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x54e1a0
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx]
nop word cs:[eax + eax]
nop dword [eax]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x54d5e0
test al, 1
je 0x54d6c2
test al, 2
mov dword [ebp - 0x10], 0xffffffff
jne 0x54d6df
xor eax, 3
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
push ecx
call fcn.005519c0
add esp, 8
test eax, eax
je 0x54d649
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x20], edx
call dword [edx]
add esp, 4
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
test eax, eax
je 0x54d649
push dword [edx + 8]
push eax
push ecx
call fcn.00407080
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], 1
mov eax, 0xffffffc0
lock xadd dword [ecx], eax
shr eax, 6
cmp eax, dword [ebp - 0x2c]
jb 0x54d6f5
jne 0x54d6b1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
lea ecx, [eax + 0x20]
mov dword [ebp - 0x20], eax
call fcn.0054c090
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x54d69f
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 0x44]
mov dword [ebp - 0x10], 1
push ecx
call eax
add esp, 4
push 0x40
push 0x80
push dword [ebp - 0x20]
call fcn.00407080
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0xffffffff
push 0x6397e4
push 0x23
push str.assertion_failed:_prev.is_running__
call fcn.005a0b60
add esp, 0xc
ud2
push 0x63981c
push 0x25
push 0x6397f4
call fcn.005a0b60
add esp, 0xc
ud2
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x5c], 0x63983c
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], fcn.00598a80
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], fcn.00598a80
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 2
lea eax, [ebp - 0x5c]
push 0x63984c
push eax
call fcn.005a0aa0
add esp, 8
ud2
Function at 0x551100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x5512b5
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x551136
mov ebx, eax
mov eax, dword [eax]
or eax, dword [ebx + 4]
jne 0x5512e5
mov eax, dword [esi]
test eax, eax
je 0x5512ea
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x551303
mov ebx, eax
test eax, eax
jne 0x551197
movzx eax, byte [0x69b8b9]
push 8
push 0x50
call fcn.00407070
add esp, 8
test eax, eax
je 0x55131d
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x48], esi
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x55130f
dec eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5511bd
mov ecx, dword [eax]
mov dword [eax], 0
lea edx, [eax + 8]
or ecx, dword [eax + 4]
mov dword [eax + 4], 0
mov eax, 0x63b030
cmovne eax, edx
jmp 0x5511c2
mov eax, 0x63b030
movsd xmm0, qword [eax + 0x38]
movsd xmm1, qword [eax + 8]
lea edi, [esp + 0x40]
mov ecx, 0x12
mov esi, ebx
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [eax + 0x30]
movsd qword [esp + 8], xmm1
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [eax + 0x28]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [eax + 0x20]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], 0
mov dword [ebx], 1
movsd xmm0, qword [esp + 0x38]
movsd qword [ebx + 0x40], xmm0
movsd xmm0, qword [esp + 0x30]
movsd qword [ebx + 0x38], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [ebx + 0x30], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [ebx + 0x28], xmm0
movsd xmm0, qword [esp + 0x18]
movsd qword [ebx + 0x20], xmm0
movsd xmm0, qword [esp + 0x10]
movsd qword [ebx + 0x18], xmm0
movsd xmm0, qword [esp]
movsd xmm1, qword [esp + 8]
movsd qword [ebx + 0x10], xmm1
movsd qword [ebx + 8], xmm0
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
je 0x5512e5
mov eax, dword [esp + 0x4c]
cmp eax, 2
je 0x5512e5
test eax, eax
lea eax, [esp + 0x50]
je 0x5512d3
mov ecx, dword [esp + 0x50]
lock dec dword [ecx]
jne 0x5512e5
push eax
call fcn.0053b230
jmp 0x5512e2
push esi
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x551129
jmp 0x551136
mov ecx, dword [esp + 0x50]
lock dec dword [ecx]
jne 0x5512e5
push eax
call fcn.0053b8d0
add esp, 4
add ebx, 8
jmp 0x551305
push esi
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x551151
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.0059fef0
add esp, 4
jmp 0x55118f
push 0x50
push 8
call fcn.005a08c0
add esp, 8
ud2
Function at 0x551330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push eax
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x55135a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x55136f
cmp dword [eax + 4], 0
mov esi, eax
je 0x55136f
add esi, 4
jmp 0x551455
push edi
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x55134a
mov eax, dword [edi]
test eax, eax
je 0x55143a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x551453
mov esi, eax
test eax, eax
jne 0x5513c9
movzx eax, byte [0x69b8b9]
push 4
push 8
call fcn.00407070
add esp, 8
test eax, eax
je 0x551479
mov dword [eax], edi
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x55145d
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5513dd
mov eax, dword [ecx]
mov dword [ecx], 0
test eax, eax
jne 0x55141a
movzx eax, byte [0x69b8b9]
push 4
push 0x18
call fcn.00407070
add esp, 8
test eax, eax
je 0x55146b
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
mov dword [esp], ecx
mov dword [esi], eax
je 0x551455
lock dec dword [ecx]
jne 0x551455
mov eax, esp
push eax
call fcn.004301c0
add esp, 4
jmp 0x551455
push edi
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x55138a
xor esi, esi
mov eax, esi
add esp, 4
pop esi
pop edi
ret
push edi
call fcn.0059fef0
add esp, 4
jmp 0x5513c1
push 0x18
push 4
call fcn.005a08c0
add esp, 8
ud2
push 8
push 4
call fcn.005a08c0
add esp, 8
ud2

Function at 0x5546c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xorps xmm0, xmm0
mov eax, esp
mov dword [esp + 0x20], 0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x554730
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [ecx]
mov dword [esp], eax
mov eax, esp
push 4
push eax
push 0x1002
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x554768
mov byte [esi], 4
mov eax, esi
add esp, 4
pop esi
ret
call fcn.00581a90
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x554780
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5547b6
mov byte [esi], 4
mov eax, esi
add esp, 4
pop esi
ret
call fcn.00581a90
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
ret