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

Disassembly:
mov eax, 0x3016f434
call fcn.30118c00
push ecx
push ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
and dword [eax], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0x1c], 0
mov dword [ebp - 0x10], 0x30193c5c
mov ecx, dword [ebp - 0x10]
call fcn.3006bc23
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
push 4
push dword [ebp - 0x14]
push 0x3006c5cb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
push 0
push 0
push 1
push 0
call dword [0x30193264]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], eax
push 0
push 0
push 0
push 0
call dword [0x30193264]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
push 0
push 0
push 1
push 0
call dword [0x30193264]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x3006c962
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
je 0x3006c962
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x3006c962
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
jne 0x3006c9b9
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x3006c975
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
je 0x3006c98a
mov eax, dword [ebp - 0x14]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x3006c99f
mov eax, dword [ebp - 0x14]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
je 0x3006c9b4
mov eax, dword [ebp - 0x14]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.3013763b
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x30193cb4]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x14]
mov dword [0x30193cb4], eax
push 0x30193c58
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x30193c4c]
inc eax
mov dword [0x30193c4c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call fcn.3006bc2b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x3006e997
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3016f66b
call fcn.30118c00
push ecx
mov eax, dword [0x301913c0]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov eax, dword [0x301913c0]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi + 4], eax
mov eax, dword [0x301913c0]
mov dword [esi + 8], eax
mov eax, dword [0x301913c0]
mov dword [esi + 0xc], eax
mov eax, dword [0x301913c0]
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov eax, dword [0x301913c0]
mov dword [esi + 0x34], eax
mov eax, dword [0x301913c0]
mov dword [esi + 0x38], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov edx, eax
shr edx, 2
shr eax, 1
and dl, 1
and al, 1
mov byte [ebp - 4], 6
push edx
push eax
push ecx
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.3006d905
push edi
mov ecx, esi
call fcn.3006e808
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x3006ea57
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x3016f67d
call fcn.30118c00
sub esp, 0x7c
mov eax, dword [section..cdata]
and dword [ebp - 0x60], 0
push ebx
push 0
push 0
push 1
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], eax
call fcn.30111e4b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.30111d5d
mov ebx, eax
test ebx, ebx
je 0x3006eb87
push esi
push edi
mov esi, dword [ebx + 0x14c]
mov ecx, ebx
mov dword [ebp - 0x6c], esi
call fcn.3006d5f2
test esi, esi
je 0x3006eabc
mov ecx, dword [esi]
shr ecx, 8
test cl, 3
jne 0x3006eac4
cmp byte [esi + 0x10], 0
jne 0x3006eac4
test al, al
je 0x3006eb73
cmp byte [0x301d3d20], 0
jne 0x3006eb26
mov dword [ebp - 0x68], 1
mov esi, 0x30193d20
mov dword [ebp - 0x64], 0x100
xor ecx, ecx
mov eax, dword [ebp - 0x68]
imul eax, eax, 0x343fd
add eax, 0x269ec3
sar eax, 0x10
and eax, 0x7fff
mov dword [ebp - 0x68], eax
cdq
mov edi, 0x100
idiv edi
mov byte [esi + ecx], dl
inc ecx
cmp ecx, 4
jl 0x3006eae2
add esi, 4
dec dword [ebp - 0x64]
jne 0x3006eae0
cmp esi, 0x301d3d20
jl 0x3006ead9
mov esi, dword [ebp - 0x6c]
mov byte [0x301d3d20], 1
push 7
xor eax, eax
test esi, esi
pop ecx
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
je 0x3006eb45
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
call fcn.3008b746
mov ecx, dword [ebx + 0x18]
xor eax, eax
mov edx, ecx
movzx esi, byte [ebp + eax - 0x88]
mov edi, edx
and edi, 0xff
shl edi, 8
add esi, edi
mov esi, dword [esi*4 + 0x30193d20]
xor dword [ebp - 0x60], esi
inc eax
add edx, ecx
cmp eax, 0x1c
jb 0x3006eb4c
lea ecx, [ebp - 0x5c]
call fcn.30111d5d
mov ebx, eax
test ebx, ebx
jne 0x3006ea98
pop edi
pop esi
lea ecx, [ebp - 0x1c]
call fcn.3006e7ab
lea ecx, [ebp - 0x1c]
call fcn.30139461
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x60]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.30118d85
leave
ret
Function at 0x30071c6a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3016f92a
call fcn.30118c00
sub esp, 0x94c
mov eax, dword [section..cdata]
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ecx, 0x3018d7d4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x958], 0x30003920
call fcn.30071a62
test al, al
je 0x30071ca7
xor eax, eax
inc eax
jmp 0x30071dae
push ebx
mov ecx, 0x3018d7e4
call fcn.30071a62
test al, al
je 0x30071cbe
push 2
pop eax
jmp 0x30071dae
push esi
push edi
movzx ax, bl
push 5
pop ecx
mov esi, 0x30003b90
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x1a], ax
movzx ax, bh
shr ebx, 0x10
mov word [ebp - 0x18], ax
movzx ax, bl
mov word [ebp - 0x16], ax
movzx ax, bh
xor ebx, ebx
cmp byte [0x30193c02], bl
mov word [ebp - 0x14], ax
je 0x30071dc5
mov dword [ebp - 0x954], ebx
lea eax, [ebp - 0x954]
push eax
push 0x20019
push ebx
push 0x30003b20
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [0x30193214]
cmp eax, ebx
jne 0x30071d75
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x954]
call dword [0x30193218]
cmp eax, ebx
jne 0x30071d75
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x958]
push eax
mov ecx, 0x3018d7d4
call fcn.301392bc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
cmp dword [ebp - 0x954], ebx
je 0x30071d70
push dword [ebp - 0x954]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x30071dac
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x954], ebx
je 0x30071d8d
push dword [ebp - 0x954]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x958]
push eax
mov ecx, 0x3018d7e4
call fcn.301392bc
mov ecx, dword [ebp + 8]
push 2
mov dword [eax], ecx
pop eax
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.30118d85
leave
ret 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x950]
call fcn.300567c2
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x124], bl
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
push 0x30003b14
push 0xff
stosw word es:[edi], ax
lea eax, [ebp - 0x124]
push eax
push 0x300020df
lea eax, [ebp - 0x94c]
push eax
push 0x30003b08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x124], bl
je 0x30071d8d
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x958]
push eax
mov ecx, 0x3018d7d4
call fcn.301392bc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x30071d70
Function at 0x3007bea5
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x301701fe
call fcn.30118c00
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3000517c
mov ecx, dword [esi + 0x58]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], 4
je 0x3007bed3
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
lea edi, [esi + 0x8c]
mov ecx, dword [edi]
cmp ecx, ebx
mov dword [esi + 0x58], ebx
je 0x3007beea
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, esi
mov dword [edi], ebx
call fcn.3007acb2
mov ecx, esi
call fcn.300a4976
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x3007bf0e
mov ecx, edi
call fcn.3008918f
push edi
call fcn.30134ce8
mov edi, dword [esi + 0x14]
cmp edi, ebx
mov dword [esi + 0x18], ebx
je 0x3007bf25
mov ecx, edi
call fcn.3007b1fe
push edi
call fcn.30134ce8
mov edi, dword [esi + 0x10]
cmp edi, ebx
mov dword [esi + 0x14], ebx
je 0x3007bf3c
mov ecx, edi
call fcn.3007d0d8
push edi
call fcn.30134ce8
lea edi, [esi + 0x84]
mov eax, dword [edi]
cmp eax, ebx
mov dword [esi + 0x10], ebx
je 0x3007bf52
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esi + 0x9c]
mov dword [edi], ebx
mov byte [ebp - 4], 3
call fcn.300c1990
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
call fcn.3007b1b9
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
mov byte [ebp - 4], 1
pop edi
je 0x3007bf81
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.3008b703
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.3006b07e
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x3007beb1
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x301701fe
call fcn.30118c00
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3000517c
mov ecx, dword [esi + 0x58]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], 4
je 0x3007bed3
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
lea edi, [esi + 0x8c]
mov ecx, dword [edi]
cmp ecx, ebx
mov dword [esi + 0x58], ebx
je 0x3007beea
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, esi
mov dword [edi], ebx
call fcn.3007acb2
mov ecx, esi
call fcn.300a4976
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x3007bf0e
mov ecx, edi
call fcn.3008918f
push edi
call fcn.30134ce8
mov edi, dword [esi + 0x14]
cmp edi, ebx
mov dword [esi + 0x18], ebx
je 0x3007bf25
mov ecx, edi
call fcn.3007b1fe
push edi
call fcn.30134ce8
mov edi, dword [esi + 0x10]
cmp edi, ebx
mov dword [esi + 0x14], ebx
je 0x3007bf3c
mov ecx, edi
call fcn.3007d0d8
push edi
call fcn.30134ce8
lea edi, [esi + 0x84]
mov eax, dword [edi]
cmp eax, ebx
mov dword [esi + 0x10], ebx
je 0x3007bf52
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esi + 0x9c]
mov dword [edi], ebx
mov byte [ebp - 4], 3
call fcn.300c1990
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
call fcn.3007b1b9
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
mov byte [ebp - 4], 1
pop edi
je 0x3007bf81
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call fcn.3008b703
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.3006b07e
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x3007c5d5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x30170238
call fcn.30118c00
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push dword [esi + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call fcn.3008bf49
xor ebx, ebx
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
call fcn.3008ba14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.3008b703
mov dword [esi + 0x58], ebx
mov byte [esi + 0x94], bl
mov byte [esi + 0x99], bl
mov byte [esi + 0x95], bl
mov byte [esi + 0x96], bl
mov byte [esi + 0x97], bl
mov byte [esi + 0x98], bl
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x88], ebx
mov byte [esi + 0x9a], bl
mov byte [esi + 0x9b], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0x60], eax
call fcn.300a3c0e
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
call fcn.3006d81c
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x14]
and eax, 0xffffff
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.30102547
mov ecx, dword [ebp - 0xc]
lea edi, [esi + 0x20]
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x30083c50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x30170883
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc], ecx
mov cl, byte [esp + 0x20]
xor eax, eax
mov byte [esi + 0x14], cl
mov ecx, 1
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], edx
mov byte [esi + 0x15], al
mov dword [esi + 0x18], ecx
mov dword [esi], 0x30005ee4
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], al
mov byte [esi + 0x1e], al
mov byte [esi + 0x1f], al
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x30], eax
mov edx, dword [esp + 0x28]
push eax
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x28]
push eax
push eax
mov dword [esi + 0x38], ecx
push 4
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], edx
call fcn.30139123
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x30085410
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x30170938
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.3006b856
mov ebp, eax
push 0
mov ecx, esi
shl ebp, 4
call fcn.3007f9d0
mov eax, dword [esi + 0x34]
mov ebx, dword [esp + 0x50]
mov byte [eax + 0x15], 1
lea esp, [esp]
call fcn.3006b856
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + 0xc]
shl eax, 4
sub eax, ebp
cmp eax, ecx
mov edi, eax
jl 0x30085468
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.30137d21
push edi
lea eax, [esp + 0x14]
push eax
push 0
mov ecx, esi
mov dword [esp + 0x54], 0
call fcn.3007f8c0
test al, al
je 0x300854fc
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.3006b7be
lea ecx, [esp + 0x2c]
call fcn.3006b7d2
test eax, eax
je 0x300854dc
lea esp, [esp]
push eax
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call dword [sym.imp.USER32.dll_UnionRect]
lea ecx, [esp + 0x2c]
call fcn.3006b7d2
test eax, eax
jne 0x300854c0
mov edx, dword [ebx]
push 0
mov ecx, ebx
call dword [edx + 0x18]
push eax
push ebx
push 0
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.30084d60
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
call fcn.30082920
mov eax, dword [esi + 0x34]
cmp edi, dword [eax + 0xc]
jl 0x30085450
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4

Function at 0x3008732d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x30170a55
call fcn.30118c00
push ecx
mov eax, dword [ebp + 8]
fldz
push esi
mov esi, ecx
or dword [esi + 0x14], 0xffffffff
fstp qword [esi + 0x18]
push edi
xor edi, edi
push 1
lea ecx, [esi + 0x20]
mov dword [ebp - 0x10], esi
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.300a6d5b
push 1
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call fcn.300a6d5b
push 5
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 1
call fcn.300a6d5b
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], 0x7f7fffff
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x30087cdb
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x30170b1e
call fcn.30118c00
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 0x110]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.3006b7be
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.3006b7d2
push eax
lea ecx, [ebp + 8]
call fcn.300efbe8
cmp dword [eax], ebx
je 0x30087d42
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp eax, dword [ebp + 0x10]
jne 0x30087d0c
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.300c1990
xor eax, eax
inc eax
jmp 0x30087df1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x30087d2f
push eax
lea ecx, [ebp + 8]
call fcn.300efbe8
push dword [ebp + 8]
lea ecx, [esi + 0x110]
call fcn.300d52fa
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp byte [esi + 0xf5], bl
mov dword [ebp + 0x14], eax
jne 0x30087d2f
cmp eax, 3
jle 0x30087d2f
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x30087d2f
shr eax, 0x14
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
lea eax, [esi + 0xb8]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
fmul qword [0x30006118]
mov edx, dword [eax + 8]
sub edx, dword [eax]
fld dword [0x30006110]
fadd st(1)
imul ecx, edx
shl ecx, 2
fmul st(1)
mov dword [ebp + 0x10], ecx
fadd st(0), st(0)
fstp st(1)
fild dword [ebp + 0x10]
fmul dword [0x3000610c]
fimul dword [ebp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jne 0x30087d2f
mov byte [esi + 0xf5], 1
jmp 0x30087d2f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x3008ef20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x301711db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
fld qword [0x30002320]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
fstp qword [esi + 0x18]
xor ecx, ecx
fld qword [0x30001920]
mov dword [esi], eax
fstp qword [esi + 0x20]
mov dword [esi + 4], ecx
fld qword [0x30002320]
mov dword [esi + 8], ecx
fstp qword [esi + 0x28]
mov dword [esi + 0xc], ecx
fld qword [0x30001920]
mov dword [esi + 0x10], ecx
fstp qword [esi + 0x30]
mov dword [esi + 0x14], ecx
fld qword [0x30002320]
mov byte [esi + 0x48], 1
fstp qword [esi + 0x38]
mov dword [esi + 0x4c], ecx
fld qword [0x30002320]
push edi
fstp qword [esi + 0x40]
cmp dword [eax + 0x20], ecx
jne 0x3008ef9e
mov dword [eax + 0x20], esi
mov edi, dword [ebp + 0xc]
cmp edi, ecx
jne 0x3008efb2
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
cmp edi, ecx
je 0x3008f0a4
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
fld qword [edi + 0x20]
mov dword [edi + 4], esi
fstp qword [esi + 0x18]
fld qword [edi + 0x30]
fstp qword [esi + 0x28]
fld qword [edi + 0x40]
fstp qword [esi + 0x38]
mov ebx, dword [edi + 0x10]
cmp ebx, ecx
je 0x3008f0a4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x3008f0a4
mov ecx, dword [0x301913c0]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
push edx
push 0x200
push 0
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0
call fcn.3008ceb0
mov eax, dword [esp + 0x10]
cmp eax, dword [0x301913c0]
mov byte [esp + 0x3c], 2
je 0x3008f02a
add eax, 0xfffffff8
push eax
call fcn.30134ce8
fld qword [0x30002320]
mov eax, dword [ebx]
push 0
sub esp, 8
lea ecx, [esp + 0x24]
fstp qword [esp]
push ecx
mov ecx, ebx
call dword [eax + 4]
test al, al
je 0x3008f079
mov eax, dword [esp + 0x24]
test eax, eax
je 0x3008f054
mov eax, dword [eax]
jmp 0x3008f056
xor eax, eax
push 8
mov dword [esp + 0x18], eax
call fcn.30134c8b
mov dword [esp + 0x10], eax
lea edx, [esp + 0x14]
push edx
mov ecx, eax
mov byte [esp + 0x40], 3
call fcn.3008d450
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x3c], 0xffffffff
mov ebx, eax
je 0x3008f0a4
mov eax, dword [eax]
cmp eax, dword [0x301913c0]
je 0x3008f09e
add eax, 0xfffffff8
push eax
call fcn.30134ce8
push ebx
call fcn.30134ce8
mov eax, dword [esi]
cmp edi, dword [eax + 0x24]
jne 0x3008f0ae
mov dword [eax + 0x24], esi
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x3008f960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30171268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
fld qword [0x30002320]
mov eax, dword [esp + 0x48]
fstp qword [esp + 0x10]
push esi
fld qword [0x30007800]
xor esi, esi
fstp qword [esp + 0x1c]
push edi
fld qword [0x30002320]
mov edi, ecx
mov ecx, dword [eax]
fstp qword [esp + 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], esi
call fcn.3008f8c0
cmp dword [esp + 0xc], 4
je 0x3008fa19
mov edi, dword [esp + 0x34]
cmp edi, esi
mov dword [esp + 0x48], 0xffffffff
je 0x3008fa04
mov eax, dword [edi]
cmp eax, dword [0x301913c0]
je 0x3008f9fe
add eax, 0xfffffff8
push eax
call fcn.30134ce8
push edi
call fcn.30134ce8
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 4
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.3008e9a0
mov edi, dword [esp + 0x34]
cmp edi, esi
mov dword [esp + 0x48], 0xffffffff
je 0x3008fa4e
mov eax, dword [edi]
cmp eax, dword [0x301913c0]
je 0x3008fa48
add eax, 0xfffffff8
push eax
call fcn.30134ce8
push edi
call fcn.30134ce8
mov ecx, dword [esp + 0x40]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 4