joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48dea0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
push esi
mov dword [esp + 8], 0
je 0x48dee9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
push 0
or ecx, 0x20007
push ecx
push 0
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x48dfa2
mov eax, dword [esp + 8]
jmp 0x48deed
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push edi
push eax
call fcn.0048d590
mov esi, eax
add esp, 8
test esi, esi
je 0x48df0b
cmp esi, 2
jne 0x48dfa1
test ebx, ebx
mov eax, dword [esp + 0xc]
jne 0x48df17
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x24]
push ebx
push ebp
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, 0x5aa
jne 0x48df7f
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
jne 0x48df4a
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x48df5d
cmp esi, 2
jne 0x48dfa0
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
jne 0x48df6c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push ebx
push ebp
push edx
push edi
push eax
call fcn.0048dd80
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x48dfa0
cmp dword [esp + 0x2c], esi
je 0x48dfa0
cmp dword [esp + 0x1c], esi
mov eax, dword [esp + 0x10]
jne 0x48df97
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
pop ebp
pop edi
mov eax, dword [esp + 8]
test eax, eax
je 0x48dfb1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
pop ecx
ret

Function at 0x491f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x491f70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, dword [esp + 0x410]
push ebx
push esi
push edi
mov edi, dword [esp + 0x418]
lea eax, [esp + 0x420]
push eax
push ecx
push 0x3ff
lea edx, [esp + 0x1c]
push 0x400
push edx
call fcn.00442ca6
mov ebx, eax
lea eax, [esp + 0x24]
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x491fc0
sub eax, edx
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ebx, ebx
je 0x492008
cmp esi, dword [esp + 0xc]
jne 0x492008
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00441cbb
add esp, 0x408
ret
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00441cbb
add esp, 0x408
ret
Function at 0x4920f0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [esi], eax
pop esi
mov eax, edx
ret

Function at 0x492180
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x21c]
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4921d1
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00441cbb
add esp, 0x20c
ret
push edi
push 0
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esp + 0x210]
test eax, eax
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00441cbb
add esp, 0x20c
ret
Function at 0x492200
Capabilities:
Check if file exists
Get common file path
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4da3a1
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x884], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0x89c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8b0]
mov ebx, dword [esp + 0x8ac]
xor ebp, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
cmp eax, ebp
mov dword [esp + 0x8a4], ebp
je 0x49241f
cmp ebx, ebp
je 0x49241f
lea eax, [esp + 0x270]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea ecx, [esp + 0x49c]
push ecx
push 0x100
lea edx, [esp + 0x6a4]
push edx
push 0x100
lea eax, [esp + 0x84]
push eax
push 3
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x290]
push edx
call fcn.004ce07e
add esp, 0x24
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x492308
cmp dword [esp + 0x64], 8
jb 0x4922fe
mov eax, dword [esp + 0x50]
push eax
call fcn.00441cca
add esp, 4
mov eax, 3
jmp 0x492424
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push edi
push esi
push ebx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x34]
push str._s_s_s._I64i
push eax
call fcn.00493ae0
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x8b0], 1
call fcn.00404c75
cmp dword [esp + 0x38], 8
mov byte [esp + 0x8a4], 0
jb 0x492361
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00441cca
add esp, 4
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x492370
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4923df
cmp ebp, 0xffff
jge 0x4922ea
add ebp, 1
add esi, 1
adc edi, 0
push edi
push esi
push ebx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x34]
push str._s_s_s._I64i
push ecx
call fcn.00493ae0
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x8b0], 2
call fcn.00404c75
cmp dword [esp + 0x38], 8
mov byte [esp + 0x8a4], 0
jb 0x492361
mov edx, dword [esp + 0x24]
push edx
jmp 0x492359
mov eax, dword [esp + 0x50]
mov esi, 8
cmp dword [esp + 0x64], esi
jae 0x4923f2
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x8b4]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0044294f
add esp, 0xc
cmp dword [esp + 0x64], esi
jb 0x49241b
mov eax, dword [esp + 0x50]
push eax
call fcn.00441cca
add esp, 4
xor eax, eax
jmp 0x492424
mov eax, 0x57
mov ecx, dword [esp + 0x89c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x884]
xor ecx, esp
call fcn.00441cbb
add esp, 0x894
ret
Function at 0x492eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4da4a1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], di
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], 1
call fcn.00492cf0
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov dword [esp + 0x44], 1
call fcn.00404c75
cmp dword [esp + 0x2c], 8
jb 0x492f3b
mov eax, dword [esp + 0x18]
push eax
call fcn.00441cca
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x494110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x494132
pop edi
xor al, al
pop esi
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x49415c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x49415c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x494162
pop ebx
pop edi
xor al, al
pop esi
ret
mov ebx, dword [esp + 0x1c]
push 0
push esi
mov ecx, ebx
call fcn.00427750
push esi
push edi
push 0
mov ecx, ebx
call fcn.00406bb2
push eax
call fcn.00442550
add esp, 0xc
pop ebx
pop edi
mov al, 1
pop esi
ret
Function at 0x4944f0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4da778
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
push str.kernel32.dll
mov dword [esp + 0x38], edi
xor ebx, ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetComputerNameExW
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
je 0x4945c6
lea eax, [esp + 0x14]
push eax
push edi
push 7
call esi
test eax, eax
jne 0x4945c6
call ebp
cmp eax, 0xea
jne 0x4945c6
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea ecx, [esp + 0x24]
call fcn.004055fa
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x49458e
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 1
jne 0x494592
xor eax, eax
jmp 0x4945a1
cmp eax, edi
ja 0x49459f
call fcn.00441e1b
mov ecx, dword [esp + 0x20]
mov eax, ecx
lea edx, [esp + 0x14]
push edx
push eax
push 7
call esi
test eax, eax
je 0x4945c6
lea eax, [esp + 0x1c]
push eax
call fcn.0040685a
mov ecx, dword [esp + 0x40]
add esp, 4
push eax
call fcn.0040436e
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x14], edi
jne 0x49466a
push edi
push 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0x10
call fcn.004055fa
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x4945f9
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 1
jne 0x4945fd
xor ecx, ecx
jmp 0x49460a
cmp eax, edi
ja 0x49460a
call fcn.00441e1b
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x494620
call ebp
mov ebx, eax
jmp 0x49466a
mov edx, dword [esp + 0x20]
cmp edx, edi
je 0x494632
mov eax, dword [esp + 0x24]
sub eax, edx
sar eax, 1
jne 0x494636
xor edx, edx
jmp 0x494643
cmp eax, edi
ja 0x494643
call fcn.00441e1b
mov edx, dword [esp + 0x20]
mov eax, edx
lea esi, [eax + 2]
jmp 0x494650
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x494650
mov ecx, dword [esp + 0x3c]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00404373
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x20]
cmp ebx, edi
sete bl
cmp eax, edi
je 0x494692
push eax
call fcn.00441cca
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x494ce0
Capabilities:
Compare security identifiers

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x494d07
mov eax, dword [esp + 8]
test eax, eax
je 0x494d07
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret

Function at 0x496250
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x496287
test al, 0x10
jne 0x4962be
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x496287
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x496285
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebp
test eax, eax
jne 0x4962f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x496300
push 0x5c
push edi
call fcn.004454c5
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4962c3
pop ebp
pop ebx
pop edi
mov eax, 0x80070003
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov ecx, edi
mov word [ebx], 0
call fcn.00496250
mov esi, eax
test esi, esi
mov word [ebx], 0x5c
jl 0x4962f9
push 0
push edi
call ebp
test eax, eax
jne 0x496307
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4962f7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
cmp eax, 0xb7
jne 0x4962e9
pop ebp
pop ebx
xor esi, esi
pop edi
mov eax, esi
pop esi
ret
Function at 0x496710
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
add ebp, 0x10
push ebp
mov edi, eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
je 0x4967d5
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x496763
test esi, esi
je 0x496763
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jae 0x4967df
mov ecx, esi
sub ecx, eax
jmp 0x496765
mov ecx, esi
test ecx, ecx
je 0x4967df
mov eax, 0x51eb851f
mul ebx
shr edx, 5
imul edx, edx, 0x64
mov eax, ebx
sub eax, edx
je 0x496784
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x4967bd
cmp esi, 0xffffffff
je 0x4967a3
test esi, esi
je 0x4967a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jb 0x49679d
xor ecx, ecx
jmp 0x4967a5
mov ecx, esi
sub ecx, eax
jmp 0x4967a5
mov ecx, esi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
test edx, edx
je 0x4967e9
mov eax, dword [eax]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push ebp
add ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
jne 0x496744
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push 0x50e8bc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], str.uninitialized_holder_used
call fcn.0044661f
int3

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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
add ebp, 0xc
push ebp
mov edi, eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
je 0x496935
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x4968c3
test esi, esi
je 0x4968c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jae 0x49693f
mov ecx, esi
sub ecx, eax
jmp 0x4968c5
mov ecx, esi
test ecx, ecx
je 0x49693f
mov eax, 0x51eb851f
mul ebx
shr edx, 5
imul edx, edx, 0x64
mov eax, ebx
sub eax, edx
je 0x4968e4
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x49691d
cmp esi, 0xffffffff
je 0x496903
test esi, esi
je 0x496903
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jb 0x4968fd
xor ecx, ecx
jmp 0x496905
mov ecx, esi
sub ecx, eax
jmp 0x496905
mov ecx, esi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
test edx, edx
je 0x496949
mov eax, dword [eax]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push ebp
add ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
jne 0x4968a4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push 0x50e8bc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], str.uninitialized_holder_used
call fcn.0044661f
int3
Function at 0x496980
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
add ebp, 0x14
push ebp
mov edi, eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
je 0x496a45
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x4969d3
test esi, esi
je 0x4969d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jae 0x496a4f
mov ecx, esi
sub ecx, eax
jmp 0x4969d5
mov ecx, esi
test ecx, ecx
je 0x496a4f
mov eax, 0x51eb851f
mul ebx
shr edx, 5
imul edx, edx, 0x64
mov eax, ebx
sub eax, edx
je 0x4969f4
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x496a2d
cmp esi, 0xffffffff
je 0x496a13
test esi, esi
je 0x496a13
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jb 0x496a0d
xor ecx, ecx
jmp 0x496a15
mov ecx, esi
sub ecx, eax
jmp 0x496a15
mov ecx, esi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
test edx, edx
je 0x496a59
mov eax, dword [eax]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push ebp
add ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
jne 0x4969b4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push 0x50e8bc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], str.uninitialized_holder_used
call fcn.0044661f
int3

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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
add ebp, 8
push ebp
mov edi, eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
je 0x496b45
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x496ad3
test esi, esi
je 0x496ad3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jae 0x496b4f
mov ecx, esi
sub ecx, eax
jmp 0x496ad5
mov ecx, esi
test ecx, ecx
je 0x496b4f
mov eax, 0x51eb851f
mul ebx
shr edx, 5
imul edx, edx, 0x64
mov eax, ebx
sub eax, edx
je 0x496af4
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x496b2d
cmp esi, 0xffffffff
je 0x496b13
test esi, esi
je 0x496b13
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jb 0x496b0d
xor ecx, ecx
jmp 0x496b15
mov ecx, esi
sub ecx, eax
jmp 0x496b15
mov ecx, esi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
test edx, edx
je 0x496b59
mov eax, dword [eax]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push ebp
add ebx, 1
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp dword [esp + 0x18], eax
jne 0x496ab4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push 0x50e8bc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], str.uninitialized_holder_used
call fcn.0044661f
int3
Function at 0x496e30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ebx, eax
cmp edi, 0xffffffff
je 0x496e61
test edi, edi
je 0x496e61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
jae 0x496ec3
mov ecx, edi
sub ecx, eax
jmp 0x496e63
mov ecx, edi
test ecx, ecx
je 0x496ec3
mov eax, dword [esi + 4]
test eax, eax
je 0x496ec3
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [eax], 0
je 0x496ec3
mov edx, dword [esi + 4]
test edx, edx
je 0x496eac
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x496ec3
mov ecx, dword [esi]
mov ecx, dword [ecx]
push 0x64
push ebp
call fcn.00496870
test al, al
je 0x496e46
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
push 0x50e8bc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.uninitialized_holder_used
call fcn.0044661f
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push ebp
call fcn.00496870
pop edi
pop esi
pop ebp
pop ebx
ret 8

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ebx, eax
cmp edi, 0xffffffff
je 0x496f11
test edi, edi
je 0x496f11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
jae 0x496f73
mov ecx, edi
sub ecx, eax
jmp 0x496f13
mov ecx, edi
test ecx, ecx
je 0x496f73
mov eax, dword [esi + 4]
test eax, eax
je 0x496f73
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [eax], 0
je 0x496f73
mov edx, dword [esi + 4]
test edx, edx
je 0x496f5c
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x496f73
mov ecx, dword [esi]
mov ecx, dword [ecx]
push 0x64
push ebp
call fcn.00496980
test al, al
je 0x496ef6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
push 0x50e8bc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.uninitialized_holder_used
call fcn.0044661f
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push ebp
call fcn.00496980
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x496f90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ebx, eax
cmp edi, 0xffffffff
je 0x496fc1
test edi, edi
je 0x496fc1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
jae 0x497023
mov ecx, edi
sub ecx, eax
jmp 0x496fc3
mov ecx, edi
test ecx, ecx
je 0x497023
mov eax, dword [esi + 4]
test eax, eax
je 0x497023
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [eax], 0
je 0x497023
mov edx, dword [esi + 4]
test edx, edx
je 0x49700c
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x497023
mov ecx, dword [esi]
mov ecx, dword [ecx]
push 0x64
push ebp
call fcn.00496710
test al, al
je 0x496fa6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
push 0x50e8bc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.uninitialized_holder_used
call fcn.0044661f
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push ebp
call fcn.00496710
pop edi
pop esi
pop ebp
pop ebx
ret 8

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ebx, eax
cmp edi, 0xffffffff
je 0x497071
test edi, edi
je 0x497071
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
jae 0x4970d3
mov ecx, edi
sub ecx, eax
jmp 0x497073
mov ecx, edi
test ecx, ecx
je 0x4970d3
mov eax, dword [esi + 4]
test eax, eax
je 0x4970d3
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [eax], 0
je 0x4970d3
mov edx, dword [esi + 4]
test edx, edx
je 0x4970bc
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4970d3
mov ecx, dword [esi]
mov ecx, dword [ecx]
push 0x64
push ebp
call fcn.00496a80
test al, al
je 0x497056
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
push 0x50e8bc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.uninitialized_holder_used
call fcn.0044661f
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push ebp
call fcn.00496a80
pop edi
pop esi
pop ebp
pop ebx
ret 8