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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
push edi
cmp esi, eax
je 0x4b8859
lea eax, [ebp - 0x40]
mov ecx, ebx
lea edi, [esi + 8]
push eax
mov dword [ebp - 0x14], edi
call fcn.004a2780
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x4b877d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.0043b890
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00428f60
test bl, bl
je 0x4b8845
mov ebx, dword [ebp - 0x14]
mov edi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 0x14], 7
mov ecx, dword [ebx + 0x10]
jbe 0x4b87b3
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
xor eax, eax
mov edx, 0x811c9dc5
add ecx, ecx
mov dword [ebp - 0x18], ecx
je 0x4b87dd
mov ebx, dword [ebp - 0x10]
mov edi, ecx
movzx ecx, byte [eax + ebx]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x4b87c6
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x18]
and ecx, edx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x4b880b
cmp eax, esi
jne 0x4b8803
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x4b8813
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x4b8813
cmp eax, esi
jne 0x4b8813
mov eax, dword [esi]
mov dword [ecx], eax
mov esi, dword [edi]
lea ecx, [ebx + 0x18]
dec dword [edx + 8]
mov eax, dword [edi + 4]
mov dword [eax], esi
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
cmp byte [ecx + 0x28], 0
je 0x4b8831
call int.004a29b0
mov ecx, ebx
call fcn.00428f60
push 0x58
push edi
call fcn.0059886a
add esp, 8
jmp 0x4b8847
mov esi, dword [esi]
mov ebx, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x20]
jne 0x4b8762
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
sub edx, dword [ecx + 8]
mov ecx, dword [ebp - 8]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059860b
mov esp, ebp
pop ebp
ret
Function at 0x4ba260
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc1bd
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
push dword [ebx + 0x24]
mov dword [esi + 0x18], eax
push dword [ebx + 0x20]
mov dword [esi + 0x1c], eax
push dword [ebx + 0x1c]
mov dword [esi + 0x20], eax
push dword [ebx + 0x18]
mov dword [esi + 0x24], eax
push dword [ebx + 0x14]
mov dword [esi + 0x28], eax
push dword [ebx + 0x10]
mov dword [esi + 0x2c], eax
push dword [ebx + 0xc]
mov dword [esi + 0x30], eax
push dword [ebx + 8]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 1
call fcn.004ba700
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20

Function at 0x4ba320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc1bd
mov eax, dword fs:[0]
push eax
push ebx
push ecx
push esi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
push dword [ebx + 0xc]
mov dword [esi + 0x18], eax
push dword [ebx + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 1
call fcn.004ba970
push dword [esi + 0x34]
mov ecx, esi
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.004ba700
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x4cfdb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dea28
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc
push esi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
movups xmmword [esi + 0xc], xmm0
push 2
movq qword [esi + 0x1c], xmm0
mov dword [esi + 0x24], 0
push esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00597f4e
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
sub esp, 0x10
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebx + 0xc]
movups xmmword [eax], xmm0
movq xmm0, qword [ebx + 0x1c]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 7
mov word [ebx + 0xc], ax
call fcn.004cfb40
add esp, 0x18
mov word [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x58], eax
lea ecx, [esi + 0x90]
mov dword [esi + 0x6c], eax
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], eax
mov eax, 1
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov word [esi + 0x8c], ax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
movups xmmword [ecx + 0xc], xmm0
push 2
movq qword [ecx + 0x1c], xmm0
mov dword [ecx + 0x24], 0
push ecx
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
call fcn.00597f4e
add esp, 8
lea ecx, [ebx + 0xc]
call fcn.00428f60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
Function at 0x4d5ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfdb0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebx + 8]
push eax
call fcn.0047a010
lea ecx, [edi + 0x28]
call fcn.004a1fa0
lea eax, [edi + 0x38]
mov word [edi + 0x30], 0
mov dword [edi + 0x34], 0
xorps xmm0, xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.00597f4e
mov eax, dword [ebx + 0x2c]
add esp, 8
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
test eax, eax
je 0x4d5b7e
mov esi, dword [eax]
lea ecx, [ebx + 8]
cmp eax, ecx
setne dl
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx edx, dl
push edx
call dword [0x5f2510]
mov ecx, dword [ebx + 0x2c]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x28
Function at 0x4dfcb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x689140]
xor eax, esp
mov dword [esp + 0x3c], eax
sub esp, 0xc
mov dword [esp + 0x18], 0x30334530
mov eax, esp
mov dword [esp + 0x1c], 0x33463141
movq xmm0, qword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], edx
movq qword [eax], xmm0
mov dword [eax + 8], 0xbe
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x6e657665
mov dword [esp + 0x14], 0x5f725f74
mov dword [esp + 0x18], 0x637072
call fcn.00428b70
push 0x20
lea eax, [esp + 0x3c]
push str.:_RPC_call_failed_with_code_
push eax
lea edx, [esp + 0x40]
call fcn.004dfb10
add esp, 0xc
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0x38]
lea ecx, [esp + 0x10]
push dword [esp + 0x38]
call fcn.004dfc30
push 0x685cec
lea eax, [esp + 0x10]
push eax
call fcn.00599dcb
int3

Function at 0x4e1dd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov dword [esp + 8], 0x39433133
mov edx, 7
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], 0x45443438
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, esi
push eax
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0x6e657665
mov dword [esp + 0x20], 0x5f725f74
mov dword [esp + 0x24], 0x637072
mov dword [esp + 0x30], 0x1c
call fcn.00425500
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e1e40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov dword [esp + 8], 0x39433133
mov edx, 2
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], 0x45443438
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, esi
push eax
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0x6e657665
mov dword [esp + 0x20], 0x5f725f74
mov dword [esp + 0x24], 0x637072
mov dword [esp + 0x30], 0x20
call fcn.00425500
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e1eb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov dword [esp + 8], 0x39433133
xor edx, edx
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], 0x45443438
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, esi
push eax
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0x6e657665
mov dword [esp + 0x20], 0x5f725f74
mov dword [esp + 0x24], 0x637072
mov dword [esp + 0x30], 0x22
call fcn.00425500
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f12c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1cbd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov dword [ebp - 0x50], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 8]
test ecx, ecx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x50]
je 0x4f1406
mov eax, dword [esi + 8]
push dword [eax + 4]
push dword [eax]
push dword [esi + 4]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x54]
push edi
push ecx
lea ecx, [ebp - 0x28]
call fcn.0050d3f0
add esp, 0x3c
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4f13c5
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x20]
push dword [eax + 4]
push dword [eax]
call fcn.004a6500
test al, al
jne 0x4f13ba
mov eax, 0x5b4
jmp 0x4f13c2
lea ecx, [ebp - 0x20]
call fcn.004f3f70
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4f142e
or ecx, 0xffffffff
lock xadd dword [edi + 4], ecx
jne 0x4f142e
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5f2510]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4f1401
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5f2510]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x2c]
jmp 0x4f142e
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edx
push edi
push ecx
push dword [eax]
call fcn.0052ce60
add esp, 0x34
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
Function at 0x500bf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3478
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x689140]
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, ecx
mov dword [ebp - 0x18], edi
push 0
mov dword [ebp - 0x18], edi
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 1
push 4
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x500cf8
mov dword [ebp - 0x28], 0x30334530
mov edx, 5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0x33463141
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x13c]
push eax
mov dword [ebp - 0x40], 0x6e657665
mov dword [ebp - 0x3c], 0x5f725f74
mov dword [ebp - 0x38], 0x637072
mov dword [ebp - 0x2c], 0x97
call fcn.00425500
add esp, 4
push str.asw::event_routing::rpc::RpcImpersonationToken
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 1
call fcn.0043b960
push str.Cannot_get_impersonation_token
mov ecx, eax
call fcn.0043b960
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.00426780
push 0x10
call fcn.005988b3
xorps xmm0, xmm0
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [ecx], 0
jmp 0x500d15
mov esi, dword [ebp - 0x18]
push 0x10
call fcn.005988b3
xorps xmm0, xmm0
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [ecx], esi
mov dword [eax + 4], 1
add esp, 4
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_asw::wrappers::basic_handle_void___struct_asw::wrappers::detail::traits_basic_win_handle__.0
cmp byte [ebp - 0x14], 0
movq qword [edi], xmm0
mov dword [edi + 4], 0
mov dword [edi + 4], eax
mov dword [edi], ecx
mov dword [ebp - 0x1c], eax
jne 0x500d4a
call fcn.00500ae0
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.0059860b
mov esp, ebp
pop ebp
ret
Function at 0x504f80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e389f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], edi
call fcn.00427310
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
push eax
call fcn.00427310
mov eax, dword [esi + 0x30]
lea ebx, [edi + 0x34]
mov dword [edi + 0x30], eax
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x34]
test esi, esi
je 0x50501c
push 0x38
call fcn.005988b3
add esp, 4
mov dword [ebp - 0x18], eax
push esi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00504f80
mov esi, dword [ebx]
mov dword [ebx], eax
test esi, esi
je 0x50501c
mov ecx, esi
call fcn.004e10f0
push 0x38
push esi
call fcn.0059886a
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x505040
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3901
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 0x18]
mov dword [ebp - 4], 0
push eax
push 2
push 0x62b5a4
push dword [ecx + 0x30]
mov ecx, edx
call fcn.00504da0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.asw::event_routing::remote_exception.0
lea ecx, [eax + 0x10]
lea eax, [ebp + 8]
push eax
call fcn.00427310
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
push esi
call fcn.00422b70
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
push edi
lea ecx, [esi + 0x40]
call fcn.00422b70
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 4
push ebx
call fcn.00427310
push dword [ebp - 0x14]
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.00504f80
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x505123
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x505119
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x505139
push ecx
push edx
call fcn.0059886a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
call fcn.005a3d9f
int3
Function at 0x50c1a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e45f5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + 4]
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x14], ecx
jne 0x50c24f
mov esi, eax
mov eax, dword [ecx]
mov dword [ebp - 0x24], eax
nop dword [eax]
cmp dword [ebx + 0x14], 7
lea ecx, [esi + 0x10]
mov dword [ebp - 0x18], esi
mov eax, ebx
jbe 0x50c210
mov eax, dword [ebx]
cmp dword [ecx + 0x14], 7
mov edx, dword [ecx + 0x10]
jbe 0x50c21b
mov ecx, dword [ecx]
push dword [ebp - 0x24]
push eax
call fcn.0040c760
add esp, 8
test eax, eax
je 0x50c239
jns 0x50c239
mov esi, dword [esi + 8]
mov dword [ebp - 0x10], 0
jmp 0x50c244
mov edi, esi
mov dword [ebp - 0x10], 1
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x50c200
mov esi, dword [ebp - 0x20]
jmp 0x50c252
mov dword [ebp - 0x14], ecx
cmp byte [edi + 0xd], 0
jne 0x50c2a1
cmp dword [edi + 0x24], 7
lea eax, [edi + 0x10]
mov edx, dword [eax + 0x10]
jbe 0x50c266
mov eax, dword [eax]
cmp dword [ebx + 0x14], 7
mov ecx, ebx
jbe 0x50c270
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp - 0x14]
push eax
mov edx, dword [edx]
call fcn.0040c760
add esp, 8
test eax, eax
je 0x50c285
js 0x50c2a1
mov dword [esi], edi
mov eax, esi
mov byte [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0x4ec4ec4
je 0x50c335
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x34
mov dword [ebp - 0x24], 0
call fcn.005988b3
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
push ebx
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 1
call fcn.00422b70
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x10]
mov dword [edi + 0x28], 0
push dword [ebp - 0x18]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.00409ac0
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00421750
int3