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

Disassembly:
push 0xffffffffffffffff
push 0x4adbe3
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.004a26f0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4e5278
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], 0x4e6f48
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.004a7d3a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a9256
test eax, eax
je 0x452bfc
mov ecx, dword [esp + 0x3c]
call fcn.004a7d67
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 0x452bc0
push edi
mov ecx, esi
call fcn.004a53cb
mov ecx, esi
call fcn.00452d60
cmp dword [esp + 0x38], 1
jne 0x452bf5
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.004a5506
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 0x454cb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x454ce3
push esi
call fcn.00463030
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x454cdc
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 0x454d69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x454d52
mov eax, dword [esi + 8]
test eax, eax
je 0x454d07
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 0x454d4e
cmp eax, 2
je 0x454d52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x454cfa
cmp eax, 3
je 0x454d2d
cmp eax, 1
jne 0x454cfa
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 0x454cfa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x454cfa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00454d90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x454d78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00454d90
add esp, 4
pop esi
ret
Function at 0x455600
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x455621
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x455621
mov eax, dword [eax + 0x44]
test eax, eax
je 0x455621
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 0x471510
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x471557
mov edi, dword [esp + 0x10]
push edi
call fcn.004a0e55
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.004890d5
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x47158b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x47158b
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x471575
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x47158b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00471650
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x4715be
cmp edi, 0x5a
jle 0x4715be
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x4715be
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x4715ed
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x471633
cmp ebx, 1
jge 0x471633
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x471633
mov al, byte [esi + 0x1d]
test al, al
jne 0x471633
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x471633
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x471633
mov al, byte [esi + 0x1d]
test al, al
je 0x471613
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00471650
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4727f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x472817
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.004890d5
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.0048935b
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.004890d5
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x47284b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.004729a0
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x472860
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x51ae48]
xor edx, edx
cmp eax, edx
jne 0x472886
xor eax, eax
mov byte [eax + 0x51ad48], al
inc eax
cmp eax, 0x100
jl 0x47286e
mov dword [0x51ae48], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x51ad48
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x472917
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 0x4728ea
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 0x4728b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x472920
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 0x472973
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 0x47295a
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 0x479320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adf4e
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.00479c40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4e8f2c
call fcn.004a0e55
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4793b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a0e55
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4793ac
push 0
mov ecx, eax
call fcn.004704d0
mov dword [esi + 0xc], eax
jmp 0x4793b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4793b5
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 0x492f3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50d97c]
jne 0x492f44
repz ret
jmp fcn.0049b742
Function at 0x49a7c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0048d4c3
and dword [ebp - 4], 0
cmp dword [0x52d318], 0
mov ebx, eax
jne 0x49a875
push 0x4f04bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49a926
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f04b0
push edi
call esi
test eax, eax
je 0x49a926
push eax
call fcn.0048d451
mov dword [esp], 0x4f04a0
push edi
mov dword [0x52d318], eax
call esi
push eax
call fcn.0048d451
mov dword [esp], 0x4f048c
push edi
mov dword [0x52d31c], eax
call esi
push eax
call fcn.0048d451
mov dword [esp], 0x4f0470
push edi
mov dword [0x52d320], eax
call esi
push eax
call fcn.0048d451
pop ecx
mov dword [0x52d328], eax
test eax, eax
je 0x49a875
push 0x4f0458
push edi
call esi
push eax
call fcn.0048d451
pop ecx
mov dword [0x52d324], eax
mov eax, dword [0x52d324]
cmp eax, ebx
je 0x49a8cd
cmp dword [0x52d328], ebx
je 0x49a8cd
push eax
call fcn.0048d4cc
push dword [0x52d328]
mov esi, eax
call fcn.0048d4cc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49a8cd
test edi, edi
je 0x49a8cd
call esi
test eax, eax
je 0x49a8c4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49a8c4
test byte [ebp - 0xc], 1
jne 0x49a8cd
or dword [ebp + 0x10], 0x200000
jmp 0x49a906
mov eax, dword [0x52d31c]
cmp eax, ebx
je 0x49a906
push eax
call fcn.0048d4cc
pop ecx
test eax, eax
je 0x49a906
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49a906
mov eax, dword [0x52d320]
cmp eax, ebx
je 0x49a906
push eax
call fcn.0048d4cc
pop ecx
test eax, eax
je 0x49a906
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x52d318]
call fcn.0048d4cc
pop ecx
test eax, eax
je 0x49a926
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49a928
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a34cb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a3503
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.004a156f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a1547
jmp 0x4a350f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a4bb9
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 0x4a4bfb
call fcn.004aa540
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4bfb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a4bf2
xor eax, eax
jmp 0x4a4c03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a4c09
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aaa70
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 0x4aaa9e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aaabc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa9d6
jmp 0x4aaabc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aaabc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa9d6
test edi, edi
mov eax, edi
jne 0x4aaaa6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x25496071
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x256224f3
call fcn.2561c60c
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x70
mov ebx, ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x2549609b
call fcn.254927f2
mov dword [ebp - 0x14], eax
jmp 0x2549609f
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, eax
call fcn.25492a38
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov edi, eax
call fcn.25558f17
mov esi, ebx
call fcn.25496153
mov esi, dword [ebp - 0x14]
call fcn.25492e0d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov edi, eax
call fcn.25493061
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov edi, eax
call fcn.254930d8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
mov edx, esi
call fcn.25492a9a
mov dword [esi + 0x2c], 0xc0000000
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
push eax
lea eax, [esi + 0x50]
call fcn.254944a4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x2549b50c
Capabilities:
Create thread

Disassembly:
mov eax, 0x256262ce
call fcn.2561c60c
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
lea edi, [ebx + 0x94]
push ebx
mov eax, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
call fcn.2549b3f3
push 0xb8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
cmp ecx, esi
je 0x2549b560
mov eax, dword [ebx + 0x8c]
mov esi, ecx
call fcn.25499ea7
mov dword [ebp - 0x18], eax
xor esi, esi
jmp 0x2549b563
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
push 0x54
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, esi
mov byte [ebp - 4], 1
je 0x2549b58e
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x78]
call fcn.2560ddb9
mov dword [ebp - 0x14], eax
jmp 0x2549b591
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
call fcn.25478422
push dword [ebx + 0x64]
mov eax, dword [ebp + 0xc]
push dword [ebx + 0x60]
mov esi, dword [ebp - 0x18]
push dword [ebx + 0x54]
mov ecx, eax
push dword [ebx + 0x50]
add eax, 8
push dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.25499fad
mov ax, word [ebx + 0x16]
cmp ax, word [esi + 0x16]
je 0x2549b5e1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x2549b685
push 0x18
mov dword [ebp - 4], 3
call fcn.25613813
mov dword [edi], eax
and dword [eax + 0x14], 0
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov esi, dword [ebp - 0x14]
pop ecx
mov dword [eax + 4], esi
call fcn.25478422
cmp dword [ebx + 0xb0], 0
jne 0x2549b627
lea eax, [ebx + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx + 0xb0], 1
mov eax, dword [edi]
lea esi, [ebx + 0x98]
mov dword [eax + 8], esi
mov eax, dword [edi]
and dword [eax + 0xc], 0
mov eax, dword [edi]
push esi
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x90]
push eax
xor eax, eax
push eax
push edi
push 0x2549b46e
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [edi]
mov dword [ecx + 0x14], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
add esp, 0x18
test eax, eax
je 0x2549b69e
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
lea esi, [ebx + 0x94]
call fcn.2549b3b3
lea eax, [ebx + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [ebx + 0xb0], edi
jmp 0x2549b681
Function at 0x254e7179
Capabilities:
Create thread

Disassembly:
mov eax, 0x25622288
call fcn.2561c60c
sub esp, 0xc
and dword [ebp - 0x18], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
lea ebx, [edi + 0x1d8]
push edi
mov eax, ebx
call fcn.254e6f4e
mov esi, dword [edi + 0x164]
call fcn.25547b1f
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.25478422
push 0x54
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x254e71dc
mov eax, dword [edi + 0x78]
call fcn.2560ddb9
mov dword [ebp - 0x14], eax
jmp 0x254e71e0
and dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x14]
call fcn.25478422
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push 0x30
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], eax
mov dword [ebp - 4], 3
call fcn.25613813
mov dword [ebx], eax
and dword [eax + 0x28], 0
mov eax, dword [ebx]
pop ecx
mov dword [eax], esi
call fcn.25478422
mov eax, dword [ebx]
mov esi, dword [ebp - 0x14]
mov dword [eax + 4], esi
call fcn.25478422
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0
push 8
call dword [eax + 0x3c]
mov ecx, dword [ebx]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov ecx, dword [edi + 0x1a0]
mov eax, dword [ebx]
mov dword [eax + 0x18], ecx
mov ecx, dword [edi + 0x1a4]
mov dword [eax + 0x1c], ecx
cmp dword [edi + 0x1f4], 0
jne 0x254e7267
lea eax, [edi + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x1f4], 1
mov eax, dword [ebx]
lea esi, [edi + 0x1dc]
mov dword [eax + 8], esi
mov eax, dword [ebx]
and dword [eax + 0x20], 0
mov eax, dword [ebx]
push esi
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0x1d4
push edi
xor edi, edi
push edi
push ebx
push 0x254e6fc9
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebx]
mov dword [ecx + 0x28], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add esp, 0x18
cmp eax, edi
je 0x254e72e6
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
mov esi, ebx
call fcn.254e6f13
mov eax, dword [ebp + 8]
add eax, 0x1dc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
and dword [eax + 0x1f4], edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x254e72c1
Function at 0x254f9695
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x2561e245
call fcn.2561c60c
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0xc], edi
mov dword [ebp - 0x10], esp
je 0x254f96ba
xor eax, eax
inc eax
jmp 0x254f9772
push 8
mov dword [ebp - 4], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
inc ebx
cmp esi, edi
mov byte [ebp - 4], bl
je 0x254f96eb
push 0xfa0
push 0x64
push ebx
push 0x300000
call fcn.255a018a
add esp, 0x10
jmp 0x254f96ed
xor eax, eax
mov dword [0x256e5f08], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x2c]
lea eax, [ecx + ecx*4]
push 0x64
shl eax, 4
xor edx, edx
pop esi
div esi
cmp ecx, 0x4600000
mov dword [0x256e5f04], edi
mov dword [0x256e5f00], eax
jae 0x254f972b
mov dword [0x256e5f10], 0x200000
jmp 0x254f9760
add ecx, 0xfce00000
test ecx, ecx
mov dword [ebp - 0x14], ecx
fild dword [ebp - 0x14]
jge 0x254f9741
fadd qword [0x25692970]
fmul qword [0x25692918]
call fcn.2561c794
mov ecx, 0xc800000
cmp eax, ecx
mov dword [0x256e5f10], eax
jle 0x254f9760
mov dword [0x256e5f10], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], ebx
mov eax, ebx
jmp 0x254f9772
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x25500296
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x2561f408
call fcn.2561c60c
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
lea esi, [edi + 0x3c]
xor ebx, ebx
pop eax
mov dword [edi], 0x2567cee8
call fcn.2560b437
mov dword [esi], 0x2568eb24
and dword [ebp - 4], ebx
push 4
lea esi, [edi + 0x50]
pop eax
call fcn.2560b437
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword [esi], 0x2568eb24
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x25502039
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x2561f3e1
call fcn.2561c60c
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0x2567cf14
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], eax
mov dword [ebp - 4], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
push 4
lea esi, [edi + 0x38]
xor ebx, ebx
pop eax
mov byte [ebp - 4], 2
call fcn.2560b437
mov dword [esi], 0x2568eb24
xor eax, eax
mov dword [edi + 0x4c], 1
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov esi, dword [ebp + 0x18]
mov byte [ebp - 4], 4
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.25502348
mov eax, dword [ebp + 0x14]
mov esi, edi
call fcn.255022d2
mov edi, dword [ebp + 0xc]
call fcn.25502285
mov eax, dword [ebp + 0x10]
mov edi, esi
call fcn.2550232f
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14