joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f650
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x48f676
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x48f6ae
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.00436d90
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x48f705
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x48f714
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x48f725
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x490360
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4903ac
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x490371
pop ebx
pop edi
pop esi
ret
Function at 0x4a6350
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x55ec40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 8], 0
je 0x4a63d5
push edi
push 1
push 0
push dword [esi + 4]
call fcn.004e981a
push dword [esi + 4]
call fcn.004e958a
mov edi, dword [esi]
lea eax, [ebp - 0x34]
push eax
push dword [edi]
call fcn.004e0955
add esp, 0x18
test eax, eax
jne 0x4a63be
mov eax, dword [ebp - 0x2e]
and eax, 0xf000
cmp eax, 0x4000
jne 0x4a63be
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
mov byte [esi + 8], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4a63d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi + 8], 0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cefd7
mov esp, ebp
pop ebp
ret

Function at 0x4a65f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov esi, dword [esi]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a6600
sub esi, ecx
sar esi, 1
lea esi, [esi*2 + 2]
push esi
call fcn.004a3040
mov edi, eax
mov eax, dword [ebp + 8]
push esi
push dword [eax]
push edi
call fcn.004d1630
movzx ecx, word [edi]
add esp, 0x10
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, edi
test cx, cx
je 0x4a668d
nop dword [eax]
cmp cx, 0x5c
je 0x4a664c
cmp cx, 0x2f
jne 0x4a667f
cmp esi, edi
je 0x4a667f
cmp word [esi - 2], 0x3a
je 0x4a667f
xor eax, eax
push eax
push edi
mov word [esi], ax
call edx
test eax, eax
jne 0x4a6671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a66b9
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4a6640
push 0
push edi
call edx
test eax, eax
jne 0x4a66a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ecx, 1
cmovne ebx, ecx
push edi
call fcn.004a3030
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
mov ebx, 1
call fcn.004a3030
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a6d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x55ec40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x552244
push dword [esi]
mov dword [ebp - 0x3c], edi
call fcn.004e1d2d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a6df2
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call fcn.004e0955
add esp, 8
test eax, eax
jne 0x4a6e05
mov eax, dword [ebp - 0x2e]
and eax, 0xf000
cmp eax, 0x8000
jne 0x4a6e05
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4a6e05
cmp esi, 0x8000000
ja 0x4a6de9
lea eax, [esi + 1]
push eax
call fcn.004a3040
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4a6de9
xor edi, edi
test esi, esi
je 0x4a6dbf
nop word [eax + eax]
push ebx
push esi
add eax, edi
push 1
push eax
call fcn.004e1f97
add esp, 0x10
test eax, eax
je 0x4a6dbc
add edi, eax
sub esi, eax
mov eax, dword [ebp - 0x38]
jne 0x4a6da0
mov eax, dword [ebp - 0x38]
push ebx
mov byte [edi + eax], 0
call fcn.004df996
mov eax, dword [ebp - 0x3c]
add esp, 4
test eax, eax
je 0x4a6dd5
mov dword [eax], edi
mov eax, dword [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004df996
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004df996
push 1
call fcn.004a3040
add esp, 8
mov byte [eax], 0
test edi, edi
je 0x4a6e22
mov dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cefd7
mov esp, ebp
pop ebp
ret

Function at 0x4a6e40
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x55ec40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call fcn.004e0955
add esp, 8
test eax, eax
jne 0x4a6e91
mov eax, dword [ebp - 0x2e]
and eax, 0xf000
cmp eax, 0x4000
jne 0x4a6e91
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
pop esi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4a6ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
pop esi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
Function at 0x4a6f20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x55ec40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x258], esi
nop
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4a6fc3
mov eax, dword [esi + 4]
mov edi, dword [eax]
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4a6f50
sub edi, ecx
sar edi, 1
lea eax, [edi*2 + 6]
push eax
call fcn.004a3040
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a708b
mov ecx, dword [ebp - 0x258]
lea esi, [edi + edi]
push esi
mov ecx, dword [ecx + 4]
push dword [ecx]
push ebx
call fcn.004d1630
add esp, 0xc
mov dword [esi + ebx], 0x2a005c
xor eax, eax
mov word [ebx + edi*2 + 4], ax
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x258]
push ebx
mov dword [esi], eax
call fcn.004a3030
add esp, 4
cmp dword [esi], 0xffffffff
jmp 0x4a6fd3
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4a708b
mov ecx, 0x508838
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a700a
test dx, dx
je 0x4a7006
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a700a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a6fe4
xor eax, eax
jmp 0x4a700f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a6f40
mov eax, 0x50883c
lea ecx, [ebp - 0x228]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4a7048
test dx, dx
je 0x4a7044
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4a7048
add ecx, 4
add eax, 4
test dx, dx
jne 0x4a7022
xor eax, eax
jmp 0x4a704d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a6f40
mov eax, dword [esi + 8]
test eax, eax
je 0x4a7065
push eax
call fcn.004a71a0
add esp, 4
lea eax, [ebp - 0x228]
push eax
push dword [esi + 4]
call fcn.004a6b10
add esp, 8
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
Function at 0x4aaa40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x561e20], 0
jne 0x4aaa83
push 0x521aec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4aaa75
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x561e1c], eax
mov byte [0x561e20], 1
jmp 0x4aaa88
mov eax, dword [0x561e1c]
mov byte [0x561e20], 1
jmp 0x4aaa88
mov eax, dword [0x561e1c]
test eax, eax
je 0x4aaa9c
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
test al, al
je 0x4aaa9c
xor eax, eax
pop ebp
ret
mov eax, 1
pop ebp
ret

Function at 0x4ab490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.starting_background_worker_thread
push 0xffffffffffffffff
call fcn.004a6260
mov esi, dword [ebp + 8]
add esp, 8
mov eax, 1
lea edi, [esi + 0x40]
xchg dword [edi], eax
mov ecx, 1
lea eax, [esi + 0x3c]
lock xadd dword [eax], ecx
push 0
push 0
push esi
push 0x4ab790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4ab4ee
xor ecx, ecx
xchg dword [edi], ecx
push esi
call fcn.004aaee0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4abbf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4abc07
pop edi
pop ebp
ret
push esi
push edi
call fcn.004a3040
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4abc32
push esi
call fcn.004a3030
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4ad580
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push edi
mov edi, ecx
cmp dword [edi + 0x28], 0
je 0x4ad599
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004ad4d0
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x4ad5b0
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [edi + 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], eax
lea eax, [edi + 0x38]
mov dword [ebp - 0x54], eax
lea eax, [edi + 0x3c]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x1c]
push 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x60], 1
push eax
push 0x2c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x58], esi
push eax
push ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
pop esi
test eax, eax
je 0x4ad6c6
cmp dword [ebp - 0x34], 2
jne 0x4ad6c6
cmp dword [ebp - 0x30], 0
je 0x4ad6c6
cmp dword [ebp - 0x14], 0
je 0x4ad6c6
cmp dword [ebp - 0x10], 0
je 0x4ad6c6
cmp dword [ebp - 0xc], 0
je 0x4ad6c6
lea ecx, [ebp - 0x8c]
call fcn.004ad400
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x8c], 3
push eax
push 0x2c
lea eax, [ebp - 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad6c6
mov eax, dword [ebp - 0x14]
mov bl, 1
push dword [ebp - 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b0080
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, 1
push esi
push edi
mov ecx, 0x3020100
mov edx, dword [ebx + 0x10c]
mov dword [ebx + 0x114], 0x3020100
add ecx, 0x4040404
mov dword [ebx + eax*4 + 0x114], ecx
inc eax
cmp eax, edx
jbe 0x4b00a1
xor esi, esi
xor edi, edi
cmp dword [esp + 0x14], esi
je 0x4b00fd
push ebp
mov ebp, dword [esp + 0x14]
movzx eax, byte [esi + ebp]
mov edx, dword [esp + 0x1c]
or edi, eax
mov ebx, edx
mov cl, byte [eax + edx + 0x114]
mov byte [esi + ebp], cl
mov byte [edx + 0x113], cl
nop
mov cl, byte [eax + ebx + 0x113]
mov edx, eax
sub eax, 1
mov byte [edx + ebx + 0x114], cl
jns 0x4b00e0
inc esi
cmp esi, dword [esp + 0x18]
jb 0x4b00c2
pop ebp
mov eax, dword [esp + 0x18]
shr edi, 2
mov dword [eax + 0x10c], edi
pop edi
pop esi
pop ebx
ret
Function at 0x4b6fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x563062
call fcn.004d007c
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.004b7220
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jbe 0x4b709c
mov eax, dword [ebp - 8]
cmp eax, dword [0x55ea98]
jb 0x4b7008
mov eax, dword [ebp - 8]
cmp eax, dword [0x55ea9c]
ja 0x4b7008
mov eax, dword [ebp - 8]
sub eax, 0x8000000
mov dword [ebp - 8], eax
jmp 0x4b6fd9
push 0x1c
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004d1bb0
add esp, 0xc
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp esi, esp
call fcn.004d0059
test eax, eax
jne 0x4b7037
jmp 0x4b709c
cmp dword [ebp - 0x1c], 0x10000
jne 0x4b7083
cmp dword [ebp - 0x20], 0x10000
jb 0x4b7083
mov esi, esp
push 0x40
push 0x3000
push 0x10000
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.004d0059
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4b7076
mov eax, dword [ebp - 0x38]
jmp 0x4b709e
mov eax, dword [ebp - 8]
sub eax, 0x10000
mov dword [ebp - 8], eax
jmp 0x4b7097
mov eax, dword [ebp - 0x28]
sub eax, 0x10000
push eax
call fcn.004b7220
add esp, 4
mov dword [ebp - 8], eax
jmp 0x4b6fd9
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4b70c4]
call fcn.004d0005
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret
Function at 0x4b70e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x563062
call fcn.004d007c
mov eax, dword [ebp + 8]
push eax
call fcn.004b7280
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x4b71d5
mov eax, dword [ebp - 8]
cmp eax, dword [0x55ea98]
jb 0x4b7143
mov eax, dword [ebp - 8]
cmp eax, dword [0x55ea9c]
ja 0x4b7143
mov eax, dword [ebp - 8]
add eax, 0x8000000
mov dword [ebp - 8], eax
jmp 0x4b7114
push 0x1c
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004d1bb0
add esp, 0xc
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp esi, esp
call fcn.004d0059
test eax, eax
jne 0x4b7172
jmp 0x4b71d5
cmp dword [ebp - 0x1c], 0x10000
jne 0x4b71be
cmp dword [ebp - 0x20], 0x10000
jb 0x4b71be
mov esi, esp
push 0x40
push 0x3000
push 0x10000
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.004d0059
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4b71b1
mov eax, dword [ebp - 0x38]
jmp 0x4b71d7
mov eax, dword [ebp - 8]
add eax, 0x10000
mov dword [ebp - 8], eax
jmp 0x4b71d0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x20]
push eax
call fcn.004b7280
add esp, 4
mov dword [ebp - 8], eax
jmp 0x4b7114
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4b71fc]
call fcn.004d0005
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret
Function at 0x4b84e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x563062
call fcn.004d007c
mov eax, dword [0x561e7c]
mov dword [ebp - 8], eax
jmp 0x4b8518
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4b8553
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.004d0059
test eax, eax
jne 0x4b8551
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d0059
jmp 0x4b8555
jmp 0x4b850f
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4b857c]
call fcn.004d0005
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret
Function at 0x4b8d90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x563062
call fcn.004d007c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.004d0059
cmp dword [0x561e8c], eax
je 0x4b8dd6
mov eax, 0x10dd
jmp 0x4b8edf
mov eax, dword [0x561e9c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b8e6c
mov esi, esp
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x36]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.004d0059
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4b8e3f
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
je 0x4b8e3f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004b77f0
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x104], eax
push 0x18
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.004cefc9
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x4b8dde
mov dword [0x561e9c], 0
call fcn.004b8280
mov eax, dword [0x561e98]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4b8ec9
mov esi, esp
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.004d0059
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x110], eax
push 8
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.004cefc9
add esp, 8
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
jmp 0x4b8e83
mov dword [0x561e98], 0
mov dword [0x561e8c], 0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4b8f04]
call fcn.004d0005
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x114
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret
Function at 0x4b9460
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x563062
call fcn.004d007c
cmp dword [0x561e90], 0
je 0x4b9498
mov eax, dword [0x561e90]
jmp 0x4b9561
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, esp
call fcn.004d0059
cmp dword [ebp + 8], eax
jne 0x4b94b3
xor eax, eax
jmp 0x4b9561
push 8
call fcn.004cef99
add esp, 4
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4b9517
mov dword [ebp - 8], 8
cmp dword [ebp - 0x14], 0
je 0x4b9500
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xec], eax
push 8
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.004cefc9
add esp, 8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov dword [0x561e90], eax
mov dword [0x561e94], 0
mov eax, dword [ebp - 8]
jmp 0x4b9561
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.004d0059
cmp eax, 0xffffffff
jne 0x4b9543
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d0059
mov dword [ebp - 8], eax
jmp 0x4b94d9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x561e98]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [0x561e98], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret 4