joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bdd00
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4bde63
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004bd150
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x4bde36
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x4bddb6
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4bde29
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x4bddf0
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x4bdde8
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x4bde29
mov edi, eax
cmp dword [ebp - 4], eax
je 0x4bde06
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x4bde3f
cmp dword [ebp - 4], eax
jne 0x4bddf7
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x4bdd62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x4bde29
push str.invalid_hash_bucket_count
call fcn.0048fb76
int3
Function at 0x4bf180
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.004a5740
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x2034]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
push eax
lea eax, [ebp - 0x34]
push 0x5138dc
push eax
call fcn.004b16b0
mov al, byte [ebp - 0x34]
add esp, 0x10
test al, al
je 0x4bf1da
lea ecx, [ebp - 0x34]
mov edx, esi
sub ecx, edx
nop
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x4bf1d0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4bf1fa
mov al, byte [ecx]
test al, al
je 0x4bf1fa
sub ecx, esi
nop dword [eax]
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x4bf1f0
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x36]
test eax, eax
mov ecx, 0x5138f0
push ebx
cmovne ecx, eax
lea eax, [ebp + 0x14]
push eax
push 0
push ecx
push 0xffffffffffffffff
sub edi, esi
mov dword [ebp + 0x10], ecx
push edi
push esi
call fcn.00416220
push dword [eax + 4]
push dword [eax]
call fcn.004dea5a
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
cmp eax, edi
cmovbe edi, eax
cmp dword [ebp + 8], 8
mov word [esi + edi], 0xa
mov esi, dword [0x5569f0]
mov eax, dword [esi]
mov ebx, dword [eax]
jne 0x4bf259
cmp dword [esi + 8], 2
je 0x4bf259
or ebx, 2
lea eax, [ebp - 0x2034]
push esi
push eax
call fcn.004bf4e0
add esp, 8
mov edi, eax
test bl, 1
je 0x4bf27d
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
pop ebx
je 0x4bf292
push edi
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.004ba540
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x4bf2b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.004a5740
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x2038], eax
lea esi, [ebp - 0x2034]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
push eax
lea eax, [ebp - 0x34]
push 0x5138dc
push eax
call fcn.004b16b0
mov al, byte [ebp - 0x34]
add esp, 0x10
test al, al
je 0x4bf311
lea ecx, [ebp - 0x34]
mov edx, esi
sub ecx, edx
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x4bf307
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bf32a
mov al, byte [ecx]
test al, al
je 0x4bf32a
sub ecx, esi
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x4bf320
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x36]
test eax, eax
mov ecx, 0x5138f0
push ebx
cmovne ecx, eax
lea eax, [ebp + 0x18]
push eax
push 0
push ecx
push 0xffffffffffffffff
sub edi, esi
mov dword [ebp + 0x14], ecx
push edi
push esi
call fcn.00416220
push dword [eax + 4]
push dword [eax]
call fcn.004dea5a
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
cmp eax, edi
cmovbe edi, eax
cmp dword [ebp + 0xc], 8
mov word [esi + edi], 0xa
mov esi, dword [ebp - 0x2038]
mov eax, dword [esi]
mov ebx, dword [eax]
jne 0x4bf389
cmp dword [esi + 8], 2
je 0x4bf389
or ebx, 2
lea eax, [ebp - 0x2034]
push esi
push eax
call fcn.004bf4e0
add esp, 8
mov edi, eax
test bl, 1
je 0x4bf3ad
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
pop ebx
je 0x4bf3c2
push edi
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.004ba540
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a44cd
mov esp, ebp
pop ebp
ret

Function at 0x4bf4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 4]
test esi, esi
je 0x4bf536
cmp dword [esi], 0
je 0x4bf536
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5567e8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x556c18]
cmp eax, dword [ecx + 8]
jg 0x4bf53b
mov edx, dword [ebp + 8]
mov ecx, edx
mov al, byte [edx]
test al, al
je 0x4bf52f
nop word [eax + eax]
xor al, byte [0x556c14]
mov byte [ecx], al
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4bf520
sub ecx, edx
mov eax, ecx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
push 0x556c18
call fcn.004a4a41
add esp, 4
cmp dword [0x556c18], 0xffffffff
jne 0x4bf50f
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x556c18
mov byte [0x556c14], al
call fcn.004a49f7
add esp, 4
jmp 0x4bf50f
Function at 0x4c0930
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov esi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x4c094c
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x4c0968
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x4c0957
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edx
push eax
mov ecx, ebx
call fcn.004206d0
mov esi, dword [eax + 4]
test esi, esi
je 0x4c09e5
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x4c09a7
cmp eax, esi
jne 0x4c099f
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x4c09af
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x4c09af
cmp eax, esi
jne 0x4c09af
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
lea edx, [ebx + 4]
dec dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esi + 8]
push eax
push edx
call fcn.0048c170
push 0x20
push esi
call fcn.004a44fe
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c2140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d27d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4c2211
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4905
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4c2202
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c21c0
sub ecx, edx
mov dword [edi], 0
sar ecx, 1
xor eax, eax
push ecx
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push esi
mov word [edi], ax
call fcn.00415d70
test esi, esi
je 0x4c2235
push 2
push esi
call fcn.004a44fe
add esp, 8
jmp 0x4c2235
test esi, esi
je 0x4c2211
push 2
push esi
call fcn.004a44fe
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
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.004a44cd
mov esp, ebp
pop ebp
ret

Function at 0x4c2450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d27d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4c2521
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4905
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4c2512
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c24d0
sub ecx, edx
mov dword [edi], 0
sar ecx, 1
xor eax, eax
push ecx
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push esi
mov word [edi], ax
call fcn.00415d70
test esi, esi
je 0x4c2545
push 2
push esi
call fcn.004a44fe
add esp, 8
jmp 0x4c2545
test esi, esi
je 0x4c2521
push 2
push esi
call fcn.004a44fe
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
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.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x4c2570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d31d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4c26e7
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4905
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4c26da
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c25f1
sub ecx, edx
mov dword [ebp - 0x48], 0
sar ecx, 1
xor eax, eax
push ecx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.00415d70
push 4
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x513fd4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00415d70
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x48]
call fcn.00405720
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4c26a7
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c269a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2728
push edx
push ecx
call fcn.004a44fe
mov eax, dword [ebp - 0x18]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
mov ecx, edi
push eax
mov dword [ebp - 0x1c], 7
call fcn.0040f220
lea ecx, [ebp - 0x48]
call fcn.00405a10
test esi, esi
je 0x4c270b
push esi
call fcn.004a450c
add esp, 4
jmp 0x4c270b
test esi, esi
je 0x4c26e7
push esi
call fcn.004a450c
add esp, 4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
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.004a44cd
mov esp, ebp
pop ebp
ret
call fcn.004da7c4
int3
Function at 0x4d24c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x4d258b
cmp edi, dword [0x54d298]
jb 0x4d250b
cmp edi, dword [0x54d29c]
ja 0x4d250b
sub edi, 0x8000000
jmp 0x4d2583
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x4d258b
cmp dword [ebp - 0x10], 0x10000
jne 0x4d256e
cmp dword [ebp - 0x14], 0x10000
jb 0x4d256e
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x4d263d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x4d258b
sub edi, 0x10000
jmp 0x4d2583
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x4d24f3
movzx eax, si
test eax, eax
je 0x4d259a
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x4d263b
cmp esi, dword [0x54d298]
jb 0x4d25bd
cmp esi, dword [0x54d29c]
ja 0x4d25bd
add esi, 0x8000000
jmp 0x4d2633
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x4d263b
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x4d261e
cmp ecx, 0x10000
jb 0x4d261e
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x4d263d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x4d263b
add esi, 0x10000
jmp 0x4d2633
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x4d2633
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x4d25a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x4d2960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5487a0
push 0x4d9020
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54c154]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x4d2a05
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4d2a05
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x4d2a05
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4d2a05
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x4d2a0e
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x4d2fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x556cd4], eax
je 0x4d2fec
pop edi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x556cd8]
test eax, eax
jne 0x4d3116
test edi, edi
jne 0x4d3012
lea eax, [edi + 0x57]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x4d302b
cmp dword [ebx], 0
jne 0x4d3042
mov dword [0x556cd8], 6
mov dword [0x556cdc], ebx
pop edi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 8
push esi
push 0x18
call fcn.004a4626
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d305b
lea edi, [eax + 8]
jmp 0x4d30f8
push 0
push dword [ebx]
call fcn.004d2f20
push 0
push edi
mov dword [ebp - 0xc], eax
call fcn.004d2f20
mov edi, dword [ebp - 0xc]
mov edx, eax
movzx ecx, byte [edi + 0x36]
mov eax, dword [edi + 0x40]
sub eax, ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4d30ea
cmp ecx, 0x1e
ja 0x4d30ea
cmp dword [edi + 0x44], edx
jne 0x4d30ea
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push 0x40
push ecx
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x4d30af
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x4d30f8
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 4], 1
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov eax, dword [0x556ce4]
mov dword [esi], eax
xor eax, eax
mov dword [0x556ce4], esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 8
cmp dword [0x556ccc], 0
mov edi, 9
jne 0x4d3102
mov dword [0x556cd8], edi
test esi, esi
je 0x4d310d
push 0x18
push esi
call fcn.004a44fe
add esp, 8
mov dword [0x556cdc], ebx
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 8
Function at 0x4d3130
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x556cd4], eax
je 0x4d3160
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x556ce4]
push edi
test esi, esi
je 0x4d31cd
push ebx
nop dword [eax]
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [esi + 4], 0
jne 0x4d31b9
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x4d31b9
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.004d78d0
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push 0x18
push esi
call fcn.004a44fe
add esp, 8
mov esi, edi
test edi, edi
jne 0x4d3170
pop ebx
mov dword [0x556ce4], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov esi, dword [0x556cc4]
mov edi, eax
test esi, esi
je 0x4d320c
lea eax, [ebp - 8]
push eax
push 0x20
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
push 0x10000
push esi
push edi
call sub.KERNEL32.dll_FlushInstructionCache
mov esi, dword [esi + 4]
test esi, esi
jne 0x4d31e8
mov edi, dword [0x556ce0]
test edi, edi
je 0x4d3231
push dword [edi + 4]
call sub.KERNEL32.dll_ResumeThread
mov esi, dword [edi]
push 8
push edi
call fcn.004a44fe
add esp, 8
mov edi, esi
test esi, esi
jne 0x4d3216
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
mov dword [0x556ce0], 0
mov dword [0x556cd4], 0
pop esi
call fcn.004a44cd
mov esp, ebp
pop ebp
ret

Function at 0x4d3260
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x556cd4], 0
jne 0x4d32fb
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x556cd4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4d32fb
push esi
mov esi, dword [0x556cc4]
mov dword [0x556ce4], eax
mov dword [0x556ce0], eax
mov dword [0x556cdc], eax
test esi, esi
je 0x4d32cc
nop dword [eax]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x4d32e2
mov esi, dword [esi + 4]
test esi, esi
jne 0x4d32b0
xor eax, eax
mov dword [0x556cd8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x556cd8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x4d37c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x556cd8]
test eax, eax
jne 0x4d383f
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x4d37e0
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.004a4626
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d37f6
lea edi, [eax + 8]
jmp 0x4d3813
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x4d382b
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push 8
push esi
call fcn.004a44fe
add esp, 8
pop esi
mov dword [0x556cd8], edi
mov eax, edi
mov dword [0x556cdc], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x556ce0]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x556ce0], esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x4d5b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e178
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x54c154]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 2
push edi
call fcn.00490901
lea esi, [edi + 0x30]
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4626
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004d5f00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret