joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557570
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 0x4f9], 0
jne 0x5575a6
push 1
mov byte [esi + 0x4fc], 1
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push esi
push 0
push 0x557500
mov byte [esi + 0x4f9], 1
call fcn.00627ab0
add esp, 0xc
ret

Function at 0x5576f0
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 0x4fe], 0
jne 0x55771f
push 1
mov byte [esi + 0x4fe], 1
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push esi
push 0
push 0x5576d0
call fcn.00627ab0
add esp, 0xc
ret
Function at 0x558470
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x134
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x341], 0
push edi
jne 0x55864a
call fcn.005576f0
cmp byte [esi + 0x4f8], 0
je 0x5584af
call fcn.00557570
mov eax, dword [esi + 0x350]
push 5
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [esi + 0x350]
push ecx
call dword [sym.imp.user32.dll_SetFocus]
push 1
call dword [sym.imp.winmm.dll_timeBeginPeriod]
mov ebx, dword [sym.imp.winmm.dll_timeGetTime]
call ebx
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x178]
mov ecx, esi
mov byte [esi + 0x4cd], 1
mov dword [esi + 0x474], edi
mov dword [esi + 0x478], edi
mov dword [esi + 0x410], edi
call eax
push esi
call fcn.00557aa0
mov byte [esi + 0x4cd], 0
call fcn.0054c900
call ebx
sub eax, edi
test eax, eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
jge 0x55852a
fadd qword [0x688570]
fdiv qword [0x6888f0]
sub esp, 8
lea ecx, [esp + 0x40]
fstp qword [esp]
push str.Seconds_________g_r_n
push ecx
call fcn.0062549e
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x47c]
push eax
lea ecx, [esp + 0x3c]
push str.Sleep_Count_____d_r_n
push ecx
call fcn.0062549e
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x484]
push eax
lea ecx, [esp + 0x3c]
push str.Update_Count____d_r_n
push ecx
call fcn.0062549e
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x480]
push eax
lea ecx, [esp + 0x3c]
push str.Draw_Count______d_r_n
push ecx
call fcn.0062549e
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x4d4]
push eax
lea ecx, [esp + 0x3c]
push str.Draw_Time_______d_r_n
push ecx
call fcn.0062549e
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x4f4]
push eax
lea ecx, [esp + 0x3c]
push str.Screen_Blt______d_r_n
push ecx
call fcn.0062549e
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esi + 0x4f4]
mov ecx, dword [esi + 0x4d4]
add ecx, eax
test ecx, ecx
jle 0x558630
mov eax, dword [esi + 0x480]
imul eax, eax, 0x3e8
cdq
idiv ecx
lea edx, [esp + 0x38]
push eax
push str.Avg_FPS_________d_r_n
push edx
call fcn.0062549e
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call edi
push 1
call dword [sym.imp.winmm.dll_timeEndPeriod]
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00626d59
mov esp, ebp
pop ebp
ret
Function at 0x558b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x655708
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x634]
lea esi, [esp + 0xc]
call fcn.005ba5a0
mov dword [esp + 0x30], 0
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x24], 0x10
jb 0x558b9f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0062414c
add esp, 4
cmp byte [esp + 0x38], 0
je 0x558bad
push 0
call fcn.00551a80
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
Function at 0x55ab60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
cmp byte [eax + 0x511], 0
jne 0x55ac62
mov eax, dword [eax + 0x350]
push eax
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x55ac62
push ebx
push ebp
push edi
call dword [sym.imp.user32.dll_EmptyClipboard]
mov eax, dword [esi + 0x14]
mov ebp, dword [sym.imp.kernel32.dll_GlobalAlloc]
add eax, 1
push eax
push 0x2002
call ebp
mov edi, eax
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
mov dword [esp + 0xc], ecx
jb 0x55abb8
mov ecx, dword [ecx]
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x55abc0
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.user32.dll_SetClipboardData]
push edi
push 1
call ebx
push edi
push 7
call ebx
push edi
push 0x10
call ebx
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0xc]
jb 0x55abf9
mov ecx, dword [ecx]
push 0
push 0
push eax
push ecx
push 1
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edi, eax
lea edx, [edi + edi + 2]
push edx
push 0x2002
call ebp
mov ebx, eax
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esp + 0xc]
mov ebp, eax
mov eax, dword [esi + 0x14]
jb 0x55ac31
mov ecx, dword [ecx]
push edi
push ebp
push eax
push ecx
push 1
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push ebx
mov word [ebp + edi*2], 0
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.user32.dll_SetClipboardData]
pop edi
pop ebp
pop ebx
add esp, 4
jmp dword [sym.imp.user32.dll_CloseClipboard]
pop ecx
ret
Function at 0x567140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6526ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.Sexy::DDInterface.0
mov dword [esp + 0x14], 3
mov eax, dword [esi + 0xd0]
push eax
call fcn.00624291
mov eax, dword [esi + 0xd4]
push eax
call fcn.00624291
mov eax, dword [esi + 0xd8]
push eax
call fcn.00624291
add esp, 0xc
call fcn.00568d90
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x5671b1
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x5671c0
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
cmp dword [esi + 0xd4c], 0x10
jb 0x5671d8
mov eax, dword [esi + 0xd38]
push eax
call fcn.0062414c
add esp, 4
mov dword [esi + 0xd4c], 0xf
mov dword [esi + 0xd48], 0
lea eax, [esi + 0xcf0]
mov byte [esi + 0xd38], 0
mov byte [esp + 0x14], 1
call fcn.005a25b0
lea eax, [esi + 0x3c]
call fcn.005b5790
mov ecx, esi
call fcn.0058e8c0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x56fa80
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esi + 0x1c]
sub esp, 0xc
test eax, eax
je 0x56fb62
push edi
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.Version
push eax
mov dword [esp + 0x1c], 2
call edi
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xb0]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.MinVidMemory
push ecx
mov dword [esp + 0x20], edx
call edi
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xb4]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.RecVidMemory
push ecx
mov dword [esp + 0x24], edx
call edi
mov eax, dword [esi + 0x1c]
push 0x10
lea edx, [esi + 0x20]
push edx
push 3
push 0
push str.DisplayGUID
push eax
call edi
mov eax, dword [esi + 0x8c]
add eax, 1
cmp dword [esi + 0x90], 0x10
jb 0x56fb1c
mov ecx, dword [esi + 0x7c]
jmp 0x56fb1f
lea ecx, [esi + 0x7c]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push 1
push 0
push str.FailureReason
push ecx
call edi
mov eax, dword [esi + 0xa8]
add eax, 1
cmp dword [esi + 0xac], 0x10
jb 0x56fb4a
mov ecx, dword [esi + 0x98]
jmp 0x56fb50
lea ecx, [esi + 0x98]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push 1
push 0
push str.Warning
push edx
call edi
pop edi
add esp, 0xc
ret
Function at 0x58ca00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x64a13b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x20]
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0056a330
mov dword [esi], vtable.Sexy::Graphics.0
call fcn.005a2880
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
cmp edi, ebx
mov dword [esp + 0x18], ebx
fldz
fst dword [esi + 8]
mov dword [esi + 0x40], ebx
fst dword [esi + 0xc]
mov dword [esi + 4], edi
fld1
mov dword [esi + 0x44], ebx
fst dword [esi + 0x10]
mov byte [esi + 0x48], bl
fstp dword [esi + 0x14]
mov byte [esi + 0x49], bl
mov byte [esi + 0x4a], 1
mov byte [esi + 0x4b], bl
fst dword [esi + 0x18]
fstp dword [esi + 0x1c]
jne 0x58ca90
mov dword [esi + 4], 0x732984
mov byte [esi + 0x4c], bl
jmp 0x58ca9a
mov eax, edi
call fcn.005719f0
mov byte [esi + 0x4c], al
mov ecx, dword [esi + 4]
mov eax, ecx
xor edx, edx
call fcn.0058eae0
mov edi, eax
mov eax, ecx
call fcn.0058eaf0
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x58e920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x652586
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.Sexy::Image.0
xor ebx, ebx
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov byte [esi + 4], bl
cmp dword [edi + 0x34], ebx
je 0x58e9af
push 0x30
call fcn.00624227
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x58e9a8
mov ecx, dword [edi + 0x34]
push ecx
push eax
call fcn.0058e9d0
mov dword [esi + 0x34], eax
jmp 0x58e9b2
xor eax, eax
mov dword [esi + 0x34], eax
jmp 0x58e9b2
mov dword [esi + 0x34], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x58f040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x653e4c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
call fcn.00447090
mov dword [esi + 8], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 8]
mov dword [eax], eax
mov eax, dword [esi + 8]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esp + 0x28], 3
call fcn.005a46d0
mov dword [esi + 0x50], eax
mov byte [eax + 0x3d], 1
mov eax, dword [esi + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x50]
mov dword [eax], eax
mov eax, dword [esi + 0x50]
lea edx, [esi + 0x58]
mov dword [eax + 8], eax
mov ecx, edx
mov dword [esi + 0x54], ebx
call fcn.0056a330
lea edi, [esi + 0x68]
mov ecx, edi
call fcn.0056a330
lea eax, [esi + 0x78]
call fcn.005a0a30
mov eax, dword [esp + 0x34]
mov dword [esi + 0x9c], 0xf
mov dword [esi + 0x98], ebx
mov byte [esi + 0x88], bl
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi], eax
or eax, 0xffffffff
mov dword [esi + 0xa0], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov ecx, dword [0x7329bc]
mov dword [edx], ecx
mov eax, dword [0x7329c0]
mov dword [edx + 4], eax
mov ecx, dword [0x7329c4]
mov dword [edx + 8], ecx
mov eax, dword [0x7329c8]
mov dword [edx + 0xc], eax
push ebx
push ebx
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x18]
call fcn.0056a3b0
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov byte [esi + 0xd4], 1
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x5a7550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x64a0a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00612aa6
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x5a75a1
mov eax, dword [esi + 0x1c]
push eax
call fcn.0062414c
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x5a7970
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x104
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [0x6ba090], 0
jne 0x5a79ed
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 4]
push str.gPakInterfaceP__d
push eax
call fcn.0062549e
add esp, 0xc
lea ecx, [esp]
push ecx
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 0xf001f
push eax
mov dword [0x6ba090], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [0x6ba094], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00626d59
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
mov edx, dword [0x6ba094]
mov eax, dword [edx]
xor ecx, esp
call fcn.00626d59
add esp, 0x104
ret
Function at 0x5ab990
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, eax
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
jne 0x5ab9af
xor al, al
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5ab9d1
pop esi
xor al, al
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x5aba12
lea eax, [ecx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
cmp edx, esi
mov ecx, dword [eax - 4]
ja 0x5ab9fe
mov edx, esi
cmp edi, ecx
jb 0x5aba08
add edx, ecx
cmp edi, edx
jbe 0x5aba1c
add ebx, 1
add eax, 0x28
cmp ebx, ebp
jb 0x5ab9f0
pop ebp
pop ebx
pop esi
xor al, al
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ebx, 1
pop ebp
mov dword [edx], ebx
pop ebx
sub edi, ecx
mov dword [eax], edi
pop esi
mov al, 1
pop edi
add esp, 0x1c
ret
Function at 0x5af4a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_GetCurrentThread]
push edi
call esi
push eax
call dword [sym.imp.kernel32.dll_GetThreadPriority]
push 2
mov ebp, eax
call esi
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x5af4dc
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x18]
push ecx
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push 0
push 0x64
push edx
push eax
call fcn.006372b0
add dword [esp + 0x18], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ecx
adc dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x14]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea edx, [esp + 0x28]
push edx
call edi
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
jl 0x5af517
jg 0x5af534
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x18]
jb 0x5af517
lea edx, [esp + 0x20]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x14]
rdtsc
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
push ebp
call esi
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 0x64
push eax
push ecx
call fcn.0063a250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x5af7d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x18
push ebx
push esi
lea eax, [esp + 0x18]
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor esi, esi
cmp dword [0x6ba0fc], esi
jle 0x5af841
xor ebx, ebx
mov edi, dword [0x76a9e4]
test edi, edi
je 0x5af81c
mov ecx, dword [0x76a9e8]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x5af827
call fcn.0062472f
mov edi, dword [0x76a9e4]
lea ecx, [ebx + edi]
push ecx
call fcn.005af680
add esi, 1
add esp, 4
add ebx, 0x18
cmp esi, dword [0x6ba0fc]
jl 0x5af7f5
lea edx, [esp + 0x14]
mov dword [0x6ba0fc], 0
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x10]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sbb ecx, dword [esp + 0x20]
add dword [0x6b96c0], eax
pop edi
pop esi
adc dword [0x6b96c4], ecx
pop ebx
add esp, 0x18
ret
Function at 0x5afc90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [edx + 0x9c0], 0x270
jl 0x5afd4e
xor eax, eax
push esi
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4]
add eax, 1
and ecx, 0x7fffffff
xor ecx, dword [edx + eax*4 - 4]
mov esi, ecx
shr ecx, 1
and esi, 1
xor ecx, dword [esi*4 + 0x6b5f68]
xor ecx, dword [edx + eax*4 + 0x630]
cmp eax, 0xe3
mov dword [edx + eax*4 - 4], ecx
jl 0x5afca3
cmp eax, 0x26f
jge 0x5afd14
mov edi, edi
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4]
add eax, 1
and ecx, 0x7fffffff
xor ecx, dword [edx + eax*4 - 4]
mov esi, ecx
shr ecx, 1
and esi, 1
xor ecx, dword [esi*4 + 0x6b5f68]
xor ecx, dword [edx + eax*4 - 0x390]
cmp eax, 0x26f
mov dword [edx + eax*4 - 4], ecx
jl 0x5afce0
mov eax, dword [edx + 0x9bc]
xor eax, dword [edx]
pop esi
and eax, 0x7fffffff
xor eax, dword [edx + 0x9bc]
mov ecx, eax
and ecx, 1
mov ecx, dword [ecx*4 + 0x6b5f68]
xor ecx, dword [edx + 0x630]
shr eax, 1
xor ecx, eax
mov dword [edx + 0x9bc], ecx
mov dword [edx + 0x9c0], 0
mov eax, dword [edx + 0x9c0]
mov ecx, dword [edx + eax*4]
add eax, 1
mov dword [edx + 0x9c0], eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
and eax, 0x7fffffff
ret
Function at 0x5b2260
Capabilities:
Get socket status

Disassembly:
sub esp, 0x328
push ebx
xor ebx, ebx
cmp byte [esi + 0xf6], bl
jne 0x5b2345
cmp byte [esp + 0x330], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x118], ebx
je 0x5b229b
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x5b22a0
mov eax, 1
cmp byte [esp + 0x334], bl
je 0x5b22ba
mov ecx, dword [esi + 8]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x118], eax
mov edx, dword [esi + 8]
mov dword [esp + 0x220], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x224]
push ecx
mov dword [esp + 0x22c], edx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x40
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x186a0
call sub.wsock32.dll_select
cmp eax, 0xffffffff
je 0x5b2351
mov edx, dword [esi + 8]
lea ecx, [esp + 0x220]
push ecx
push edx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x5b2351
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x5b2345
mov eax, dword [esi + 8]
lea edx, [esp + 0x118]
push edx
push eax
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x5b2345
cmp byte [esi + 0xf6], bl
je 0x5b2275
mov al, 1
pop ebx
add esp, 0x328
ret 8
mov ecx, 6
mov eax, esi
call fcn.005b2250
xor al, al
pop ebx
add esp, 0x328
ret 8

Function at 0x5b2e70
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x6ba058]
test ecx, ecx
mov dl, 1
mov byte [eax + 0xf4], dl
je 0x5b2e8b
cmp byte [ecx + 0x511], 0
jne 0x5b2ea1
push eax
push 0
push 0x5b2be0
mov byte [eax + 0xf5], dl
call fcn.00627ab0
add esp, 0xc
ret