joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4438f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00490b14
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00443250
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00490a42
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048d306
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048d306
push 1
push 0
push 0
mov ecx, esi
call fcn.0048d2ae
push 1
push 0
push 1
mov ecx, esi
call fcn.0048d2ae
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00490b86
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443a70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00490b14
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00443250
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00490a42
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x443b34
cmp dword [esp + 0x40], 1
jne 0x443b32
cmp ecx, eax
jge 0x443b34
mov eax, ecx
cmp eax, 0xc8
jge 0x443b40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004438f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00490b86
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x444350
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497da3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048b726
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00490dbc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004922d8
test eax, eax
je 0x44446c
mov ecx, dword [esp + 0x3c]
call fcn.00490de9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x444430
push edi
mov ecx, esi
call fcn.0048e44d
mov ecx, esi
call fcn.00444610
cmp dword [esp + 0x38], 1
jne 0x444465
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048e588
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x446660
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446693
push esi
call fcn.00454a40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44668c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x446719
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446702
mov eax, dword [esi + 8]
test eax, eax
je 0x4466b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4466fe
cmp eax, 2
je 0x446702
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4466aa
cmp eax, 3
je 0x4466dd
cmp eax, 1
jne 0x4466aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4466aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4466aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446740
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446728
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446740
add esp, 4
pop esi
ret

Function at 0x446fb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x446fd1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x446fd1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x446fd1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x464900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x641efc]
xor edx, edx
cmp eax, edx
jne 0x464926
xor eax, eax
mov byte [eax + 0x641dfc], al
inc eax
cmp eax, 0x100
jl 0x46490e
mov dword [0x641efc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x641dfc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4649b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46498a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x464958
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x464a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x464a83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x464a6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46b420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49828e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046bd40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x60859c
call fcn.00489eb6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46b4b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00489eb6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46b4ac
push 0
mov ecx, eax
call fcn.00462530
mov dword [esi + 0xc], eax
jmp 0x46b4b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46b4b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48c51c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48c554
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048a5d0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048a5a8
jmp 0x48c560
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48dc0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48dc4c
call fcn.004936c3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48dc4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48dc43
xor eax, eax
jmp 0x48dc54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048dc5a
pop edi
pop esi
pop ebx
ret 4
Function at 0x493bf3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x493c21
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x493c3f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00493b59
jmp 0x493c3f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x493c3f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00493b59
test edi, edi
mov eax, edi
jne 0x493c29
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001290
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
mov byte [ebp - 0x21], bl
je 0x1000138a
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 0x28], eax
cmp dword [edi + 4], esi
je 0x10001375
lea ebx, [edi + 0xc]
nop dword [eax + eax]
cmp dword [ebx], 0
je 0x1000134a
push 0x1cff
push 0x64
push 0
push ebx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x10001360
cmp eax, 0xffffffff
je 0x1000134a
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
movq qword [ebp - 0xc], xmm0
push eax
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10001330
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
jne 0x10001330
mov esi, 1
jmp 0x10001334
test esi, esi
je 0x10001344
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, 0x2710
ja 0x1000134a
cmp dword [edi + 4], 0
jne 0x100012d0
mov al, byte [ebp - 0x21]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100013b4
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
pop edi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
Function at 0x100015b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cf4a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x1007b02c
mov dword [ebp - 0x2c], 3
mov edi, 0x1007de5c
mov dword [ebp - 0x28], eax
nop
push 0x40
call fcn.1005b6ec
mov esi, eax
mov dword [ebp - 0x34], esi
push 0x40
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov ecx, esi
push dword [eax + 4]
push dword [eax]
push dword [eax - 4]
call fcn.10003a10
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi]
cmp esi, ecx
je 0x1000163d
test ecx, ecx
je 0x1000163b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], esi
mov ecx, dword [edi]
lea edx, [ebp - 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x20], xmm0
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x100016ce
mov ecx, dword [edi]
lea eax, [ebp - 0x30]
push eax
call fcn.10001410
mov dword [ebp - 4], 1
mov esi, dword [eax]
test esi, esi
je 0x10001678
lock inc dword [esi + 4]
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1000169a
lea ecx, [edx + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x1000169a
lea eax, [edx + 4]
xor ecx, ecx
test eax, eax
cmovne ecx, edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [edi + 0x10], esi
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100016c5
lea ecx, [eax + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x100016c5
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [ebp - 4], 0xffffffff
jmp 0x100016dd
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add dword [ebp - 0x28], 0xc
add edi, 4
sub dword [ebp - 0x2c], 1
jne 0x100015f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10002b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x44
lea eax, [ebp - 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ax, word [ebp + 0x20]
lea ecx, [ebp - 0x58]
add esp, 0xc
mov word [ebp - 0x18], ax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x44
cmovae eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c], 0x81
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x10002bce
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x10002be0
inc eax
push eax
push dword [ebp + 8]
call fcn.10003020
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x100038e0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x1007de18]
test esi, esi
jne 0x1000391a
push 8
call fcn.1005b6ec
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov dword [0x1007de18], esi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
test eax, eax
je 0x10003936
mov eax, dword [eax + 0x84]
test eax, eax
je 0x10003936
mov byte [eax + 4], 1
mov esp, ebp
pop ebp
ret

Function at 0x10003ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [ebp + 8]
mov dword [edi + 0x38], eax
test esi, esi
je 0x10003cc9
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi], ecx
lea ebx, [edi + 0x10]
test ebx, ebx
je 0x10003d36
push 0
push 0
push edi
push 0x10003940
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx], eax
test eax, eax
setne al
test al, al
je 0x10003d36
test esi, esi
je 0x10003cfd
mov dword [esi + 4], 0
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x10003d16
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 8], ecx
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 1
mov al, 1
mov dword [edi + 0x38], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4
test esi, esi
je 0x10003d55
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x38], 0
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100040e0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov esi, 0x1007de14
push 0x1007de98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi]
test edi, edi
je 0x10004119
cmp dword [edi + 0x14], 0
je 0x10004119
push 0x1007de98
call ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
jmp 0x10004120
push 0x1007de98
call ebx
sub esi, 4
cmp esi, 0x1007de08
jne 0x100040f2
mov esi, dword [0x1007de18]
test esi, esi
jne 0x10004160
push 8
call fcn.1005b6ec
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov dword [0x1007de18], esi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10004177
mov dword [eax + 0x64], 1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x100053c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x48]
jne 0x1000541a
call esi
mov ecx, eax
mov edx, 0x1007df28
xor eax, eax
lock cmpxchg dword [edx], ecx
call esi
mov ecx, eax
mov eax, dword [0x1007df28]
cmp eax, ecx
ja 0x10005407
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sub ecx, eax
mov eax, dword [ebp + 8]
dec ecx
mov dword [eax], ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, eax
call esi
mov ecx, eax
mov edx, 0x1007df28
xor eax, eax
lock cmpxchg dword [edx], ecx
call esi
mov ecx, dword [0x1007df28]
cmp ecx, eax
ja 0x1000543b
sub eax, ecx
jmp 0x1000543e
sub eax, ecx
dec eax
cmp dword [ebx + 4], eax
mov eax, dword [edi + 0x44]
jbe 0x10005459
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1c], xmm0
movq xmm0, qword [eax + 0x10]
movzx eax, byte [edi + 0x50]
push eax
push dword [edi + 0x48]
movq qword [ebp - 0xc], xmm0
push dword [edi + 0x44]
call fcn.100066f0
add dword [edi + 0x48], 0xffffffe8
add esp, 0xc
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x48]
je 0x10005491
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.10004fd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10005610
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x48]
jne 0x10005629
or ecx, 0xffffffff
jmp 0x10005671
mov eax, dword [eax + 4]
mov dword [edi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x1007df28
xor eax, eax
lock cmpxchg dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [0x1007df28]
cmp eax, ecx
ja 0x10005657
sub ecx, eax
jmp 0x1000565a
sub ecx, eax
dec ecx
mov eax, dword [edi + 0x58]
sub eax, ecx
mov ecx, 0
cmovns ecx, eax
mov eax, 0xa
cmp ecx, eax
cmovb ecx, eax
push 0
push ecx
push edi
push dword [edi + 0x88]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
ret 4