joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501980
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c6ba
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], 0
call fcn.004bee10
push 0
push 2
mov esi, dword [eax + 0x224]
mov ecx, esi
call dword [0x64a4ac]
call esi
mov esi, eax
mov dword [ebp - 0x148], esi
test esi, esi
jne 0x5019f9
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
jmp 0x501b4b
lea eax, [ebp - 0x148]
mov dword [ebp - 0x158], eax
push 0x124
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.006046d0
add esp, 0xc
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x501a5b
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 2
jmp 0x501b30
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
call fcn.005e43f0
mov ebx, eax
nop word [eax + eax]
cmp dword [ebp - 0x12c], ebx
jne 0x501ae5
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x14]
je 0x501ad5
mov esi, dword [ebp - 0x13c]
mov dword [edi], esi
mov dword [edi + 4], 0
call fcn.004bee10
push esi
push 0
push 0x1fffff
mov esi, dword [eax + 0x238]
mov ecx, esi
call dword [0x64a4ac]
call esi
mov dword [edi + 4], eax
add dword [ebp - 0x18], 8
jmp 0x501ae5
lea eax, [ebp - 0x13c]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00501640
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x501a90
mov ebx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 6
call fcn.004bee10
push dword [ebp - 0x148]
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x64a4ac]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
Function at 0x504610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61cc25
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 0x10]
push eax
call fcn.00503d30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x4933e0
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x2c], 0
call fcn.0053e836
mov eax, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
je 0x504724
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push 1
push esi
call fcn.0053efd3
push dword [ebp - 0x2c]
call fcn.0053ed63
push dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x4933fc
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0053e97b
mov edi, dword [edi + 0x24]
add esp, 0x24
test edi, edi
je 0x50473f
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x64a4ac]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x5046ed
push eax
call fcn.0053ea12
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 3
cmp eax, 0x10
jb 0x504709
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004c24c0
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.00602a00
mov esp, ebp
pop ebp
ret
push 0x4933e4
lea ecx, [ebp - 0x3c]
call fcn.004ba2d0
push 0x62f434
lea eax, [ebp - 0x3c]
push eax
call fcn.00603d27
call fcn.005ed82a
int3
Function at 0x504c10
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ccd5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.005e43f0
push eax
push 4
mov dword [ebp - 0x40], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x504c75
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x504d27
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
push ecx
push eax
mov dword [ebp - 0x38], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x504ca8
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ebp - 4], 1
jmp 0x504d1e
xor esi, esi
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
xor ebx, ebx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
nop
cmp dword [ebp - 0x2c], edi
jne 0x504cf9
cmp esi, ebx
je 0x504ce6
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x18], esi
jmp 0x504cf9
lea eax, [ebp - 0x30]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00504860
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x504cd0
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov dword [ebp - 4], 4
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
Function at 0x50e700
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
xor edx, edx
xor eax, eax
mov dword [esp + 4], 0x310030
mov dword [esp + 8], 0x330032
mov dword [esp + 0xc], 0x350034
mov dword [esp + 0x10], 0x370036
mov dword [esp + 0x14], 0x390038
mov dword [esp + 0x18], 0x420041
mov dword [esp + 0x1c], 0x440043
mov dword [esp + 0x20], 0x460045
test ebx, ebx
je 0x50e78c
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x30]
nop word [eax + eax]
movzx ecx, byte [eax + edi]
lea edx, [edx + 2]
shr ecx, 4
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 4], cx
movsx ecx, byte [eax + edi]
inc eax
and ecx, 0xf
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 2], cx
cmp eax, ebx
jne 0x50e760
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x50e7a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x28
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x50e7fb
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x50e7fb
lea eax, [esp + 0x10]
mov dword [esp + 4], 0xc
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x24], 0
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x28]
test eax, eax
pop esi
setne al
xor ecx, esp
call fcn.00602a00
add esp, 0x28
ret
Function at 0x50f340
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61de65
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x4938bc
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x50f4fb
mov dword [ebp - 0x38], edi
mov ebx, 0x10000
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.0053e0c0
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x50f4dc
jmp 0x50f3cd
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
push 0
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x50f417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x50f46c
mov ebx, dword [ebp - 0x24]
push ebx
push esi
mov dword [ebp - 0x2c], ebx
call fcn.0053fa54
add esp, 8
test eax, eax
jne 0x50f3cd
push esi
call fcn.0053ae24
add esp, 4
mov dword [ebp - 4], 3
jmp 0x50f480
mov ebx, dword [ebp - 0x28]
mov edi, esi
add ebx, esi
cmp esi, ebx
jae 0x50f3c7
lea eax, [edi + 0x38]
mov ecx, 0x4938c4
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x50f450
test dl, dl
je 0x50f44c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x50f450
add ecx, 2
add eax, 2
test dl, dl
jne 0x50f430
xor eax, eax
jmp 0x50f455
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50f461
cmp word [edi + 0x14], 0x1775
je 0x50f4a9
add edi, dword [edi]
cmp edi, ebx
jb 0x50f422
jmp 0x50f3c7
push esi
mov byte [ebp - 4], 4
call fcn.0053ae24
add esp, 4
mov dword [ebp - 4], 5
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov edi, dword [ebp - 0x34]
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.0050f520
add esp, 4
test al, al
jne 0x50f4fb
push edi
call fcn.0050f690
add esp, 4
jmp 0x50f4fd
push dword [edi + 0xc]
lea eax, [ebp - 0x20]
push 0x4938d0
push eax
call fcn.00510f10
lea edx, [ebp - 0x20]
add esp, 0xc
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x50f4c3
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
sub edx, edi
push edx
push eax
call fcn.004c22a0
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 6
test esi, esi
je 0x50f4ed
push esi
call fcn.0053ae24
add esp, 4
push edi
mov dword [ebp - 4], 7
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
Function at 0x50f900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61dedd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x1c]
push edx
push dword [0x64d07c]
mov byte [ebp - 0x1d], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50f9a2
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov dword [edi], 0
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
test eax, eax
jne 0x50f990
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x50f9a5
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
Function at 0x50fa40
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61df1d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x50fa7f
mov eax, dword [edi]
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push dword [0x64d07c]
push 0
push 0x493878
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50fb7a
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x493864
push esi
call ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x50fada
cmp ecx, 2
jne 0x50fb65
test eax, eax
jne 0x50fb65
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.004c3e90
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x50faf7
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x493864
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x50fb65
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 0x10
jb 0x50fb1c
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
lea ebx, [edx - 1]
add ebx, eax
mov eax, edi
cmp ecx, 0x10
jb 0x50fb2d
mov eax, dword [edi]
sub ebx, eax
mov ecx, 1
mov eax, edx
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x20], ecx
mov eax, edi
jb 0x50fb4a
mov eax, dword [edi]
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x20]
sub edx, eax
add eax, ecx
mov dword [edi + 0x10], edx
sub edx, ebx
inc edx
push edx
push eax
push ecx
call fcn.00604150
add esp, 0xc
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x10], 0
je 0x50fbaa
push 0x13
push 0x493a10
mov ecx, edi
call fcn.004c2070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x24]
call fcn.0050c570
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.0050c5d0
push 0x635cc4
lea eax, [ebp - 0x50]
push eax
call fcn.00603d27
int3
Function at 0x5108f0
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ecx]
lea eax, [esp + 0x30]
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x5109ad
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp edx, ecx
jl 0x510991
mov eax, dword [esp + 0x3c]
jg 0x510930
cmp edi, eax
jbe 0x510991
push 0
push 0
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x5109ad
sub edi, dword [esp + 0x3c]
je 0x51097c
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x200
cmp edi, 0x200
mov esi, edi
push 0
cmova esi, eax
lea eax, [esp + 0x48]
push eax
push esi
push 0x659d58
push ebx
call ebp
cmp dword [esp + 0x44], esi
jne 0x5109ad
mov eax, 0x200
sub edi, esi
jne 0x510952
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x3c
ret 8
push 0
push 0
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x5109ad
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51097c
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [esp + 0x40]
call fcn.0050c570
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.0050c5d0
push 0x635cc4
lea eax, [esp + 0x14]
push eax
call fcn.00603d27
int3
Function at 0x510d50
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x510d92
mov eax, dword [0x659f58]
test eax, eax
jne 0x510d80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [ebx + 0xc], eax
cmp eax, 8
jb 0x510eb5
cmp eax, 0x20
jae 0x510db5
pause
inc dword [ebx + 0xc]
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00602a00
add esp, 0x3c
ret
jne 0x510e9a
push 7
call fcn.0050f220
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
call eax
push 0xa
call fcn.0050f220
add esp, 4
lea ecx, [esp + 4]
push ecx
call eax
test eax, eax
jne 0x510dfe
mov ecx, dword [esp + 0xc]
mov eax, 0xd1b71759
lea ecx, [ecx - 1]
mul ecx
shr edx, 0xd
jmp 0x510e3f
mov eax, dword [esp + 0xc]
mov ecx, 0x5f5e100
push esi
push edi
push dword [esp + 0x10]
mul ecx
push dword [esp + 0x10]
mov edi, eax
mov esi, edx
push 0x38d7e
sub edi, 1
push 0xa4c67fff
sbb esi, 0
call fcn.00602c60
add eax, 1
adc edx, 0
push edx
push eax
push esi
push edi
call fcn.00602c60
pop edi
mov edx, eax
pop esi
lea eax, [edx + 1]
push 9
mov dword [ebx + 8], eax
call fcn.0050f220
add esp, 4
lea ecx, [esp + 4]
push ecx
call eax
test eax, eax
jne 0x510e7a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebx], eax
inc dword [ebx + 0xc]
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00602a00
add esp, 0x3c
ret
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
inc dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00602a00
add esp, 0x3c
ret
cmp dword [ebx + 8], 0
jne 0x510ec8
and al, 1
je 0x510f06
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x510eb5
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x3c]
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x3c
ret
push 9
call fcn.0050f220
add esp, 4
lea ecx, [esp + 4]
push ecx
call eax
test eax, eax
jne 0x510ee7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
jmp 0x510eef
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
sub eax, dword [ebx]
sbb ecx, dword [ebx + 4]
test ecx, ecx
jb 0x510ea4
ja 0x510eff
cmp eax, dword [ebx + 8]
jb 0x510ea4
mov dword [ebx + 8], 0
push 1
jmp 0x510eaf
Function at 0x513ff0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e57d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call fcn.0052fbc0
mov ebx, dword [esi]
add esp, 4
add ebx, 0xa
add ebx, eax
mov eax, 7
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov dword [edi + 2], ebx
add eax, 0xfffffffa
mov ecx, dword [esi + 0x30]
add edi, 6
push eax
push edi
call fcn.00514b00
mov ecx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x5140f8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x24]
sub eax, edi
add eax, dword [ebp - 0x28]
push eax
push dword [esi]
push edi
call fcn.0052fa90
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x3c]
add esp, 0x10
push eax
call fcn.005148b0
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.00503130
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00514e40
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x5140d8
mov ecx, dword [ebp - 0x30]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.004d6030
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret 8
call fcn.005ed82a
int3
Function at 0x514100
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e57d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call fcn.0052fbc0
mov ebx, dword [esi]
add esp, 4
add ebx, 0x12
add ebx, eax
mov eax, 3
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov dword [edi + 2], ebx
add eax, 0xfffffffa
mov ecx, dword [esi + 0x30]
add edi, 6
push eax
push edi
call fcn.00514b20
mov ecx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x514208
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x24]
sub eax, edi
add eax, dword [ebp - 0x28]
push eax
push dword [esi]
push edi
call fcn.0052fa90
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x3c]
add esp, 0x10
push eax
call fcn.005148b0
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.00503130
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00514e40
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x5141e8
mov ecx, dword [ebp - 0x30]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.004d6030
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret 8
call fcn.005ed82a
int3