joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50de40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5959a9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], 1
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
cmp esi, ebp
je 0x50dec7
cmp edi, ebx
je 0x50dec7
push esi
mov ecx, edi
call fcn.00510410
lea ecx, [esp + 0x54]
test al, al
je 0x50deb7
push edi
call fcn.0050e230
add edi, 0x3f4
cmp edi, ebx
jmp 0x50dec5
push esi
call fcn.0050e230
add esi, 0x3f4
cmp esi, ebp
jne 0x50de97
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 2
push ebp
mov byte [esp + 0x58], 1
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.0050d660
add esp, 0x18
mov byte [esp + 0x40], 3
mov eax, dword [eax + 0x10]
mov dword [esp + 0x64], eax
mov byte [esp + 0x40], 1
mov esi, dword [esp + 0x24]
test esi, esi
je 0x50df50
cmp esi, dword [esp + 0x2c]
je 0x50df47
lea ebx, [ebx]
mov ecx, esi
call fcn.00510160
add esi, 0x3f4
cmp esi, dword [esp + 0x2c]
jne 0x50df30
mov esi, dword [esp + 0x24]
push esi
call fcn.00564de3
add esp, 4
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 4
push ebx
mov byte [esp + 0x58], 1
mov edx, edi
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.0050d660
add esp, 0x18
mov dword [esp + 0x14], 1
mov byte [esp + 0x40], 0
mov esi, dword [esp + 0x54]
test esi, esi
je 0x50dfd1
cmp esi, dword [esp + 0x5c]
je 0x50dfc8
mov ecx, esi
call fcn.00510160
add esi, 0x3f4
cmp esi, dword [esp + 0x5c]
jne 0x50dfb1
mov esi, dword [esp + 0x54]
push esi
call fcn.00564de3
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x50fb60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x595dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.0056590a
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x50fbcc
push 0x34
push 0
push esi
call fcn.0056cbb0
add esp, 0xc
mov ecx, esi
call fcn.0050f830
mov esi, eax
jmp 0x50fbce
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push SysReAllocString
push eax
lea ecx, [esi + 0x18]
call fcn.004b7ec0
test al, al
jne 0x50fc00
test esi, esi
je 0x50fbfc
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x50fc48
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
lea ecx, [edi + 8]
movlpd qword [esp + 0x1c], xmm0
call fcn.004b80e0
test al, al
je 0x50fbf0
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x50fbf4
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x595ebf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov byte [esp + 0x14], 1
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov byte [esp + 0x14], 2
mov dword [esi + 0x5c], 7
mov dword [esi + 0x58], eax
mov word [esi + 0x48], ax
mov byte [esp + 0x14], 3
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], eax
mov word [esi + 0x60], ax
mov byte [esp + 0x14], 4
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], eax
mov word [esi + 0x78], ax
mov byte [esp + 0x14], 5
push 0x35c
push eax
lea eax, [esi + 0x98]
push eax
call fcn.0056cbb0
add esp, 0xc
xor eax, eax
mov dword [esi + 0x90], eax
mov word [esi + 0x94], ax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x5106a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x596077
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push 0x18
mov byte [edi], 0
call fcn.0056590a
add esp, 4
mov dword [edi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x1c], 0
lea esi, [edi + 8]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00512440
mov dword [esi], eax
mov byte [esp + 0x1c], 3
lea esi, [edi + 0x10]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00512440
mov dword [esi], eax
mov byte [esp + 0x1c], 6
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], 0
mov word [edi + 0x20], ax
mov byte [esp + 0x1c], 7
lea ecx, [edi + 0x38]
call fcn.004c3c20
mov byte [esp + 0x1c], 8
lea eax, [edi + 0xb0]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [esp + 0x10], eax
mov word [eax], cx
mov byte [esp + 0x1c], 9
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], cl
mov byte [esp + 0x1c], 0xa
xor eax, eax
mov dword [edi + 0xfc], 7
mov dword [edi + 0xf8], ecx
mov word [edi + 0xe8], ax
mov byte [esp + 0x1c], 0xb
mov dword [edi + 0x114], 0xf
mov dword [edi + 0x110], eax
mov byte [edi + 0x100], al
mov byte [esp + 0x1c], 0xc
mov dword [edi + 0x12c], 0xf
mov dword [edi + 0x128], eax
mov byte [edi + 0x118], al
mov dword [esp + 0x1c], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x510ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5961b1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], 0
lea esi, [ebx + 4]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
test esi, esi
je 0x510c03
mov eax, dword [esi]
test eax, eax
je 0x510c03
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 1
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
push eax
mov word [edi], ax
lea eax, [ebx + 0xe8]
push eax
call fcn.00404960
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], 0
test esi, esi
je 0x510c55
mov eax, dword [esi]
test eax, eax
je 0x510c4d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], 0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00564de8
add esp, 0x1c
ret 4
Function at 0x512100
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x58daf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00511f90
mov dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
je 0x5121ab
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5121ab
test esi, esi
je 0x5121ab
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 8
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x5121c6
push dword [esp + 0xc]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00564de8
add esp, 0x2c
ret 8

Function at 0x512200
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5964e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x10], xmm0
call fcn.00511f90
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0
je 0x5122c2
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push 0
cmovae eax, dword [esp + 0x20]
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5122c2
test esi, esi
je 0x5122c2
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 8
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5122bb
xorps xmm0, xmm0
movlpd qword [esp + 0xc], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x5122e5
push dword [esp + 0x1c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
mov edx, edi
mov dword [esp + 0x2c], 0
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00564de8
add esp, 0x38
ret
Function at 0x513d10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push edi
mov edi, dword [esp + 0x18]
mov dword [ebx], 0
cmp dword [ebp], 0xffffffff
jne 0x513d4d
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00564de8
add esp, 8
ret 0xc
push esi
mov esi, dword [esp + 0x20]
mov ecx, 0x100000
jmp 0x513d60
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
add dword [ebx], ecx
test al, al
je 0x513dba
test ecx, ecx
je 0x513da3
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x513d60
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00564de8
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00564de8
add esp, 8
ret 0xc

Function at 0x514ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x596a48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x30]
lea esi, [edi + 0x58]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
test esi, esi
je 0x515052
mov eax, dword [esi]
test eax, eax
je 0x515052
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [edi + 0x5c]
call fcn.005162b0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x515075
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x28], 0xffffffff
test esi, esi
je 0x515096
mov eax, dword [esi]
test eax, eax
je 0x51508e
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00564de8
add esp, 0x20
ret 4
Function at 0x515240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x596ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea ebx, [esi + 0xc]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x515295
mov eax, dword [ebx]
test eax, eax
je 0x515295
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
push esi
lea ecx, [esp + 0x20]
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
call fcn.00516120
mov byte [esp + 0x38], 1
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x5152d6
mov eax, dword [ebx]
test eax, eax
je 0x5152d0
push eax
call esi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov edi, eax
cmp eax, dword [esp + 0x20]
je 0x5153b4
mov ebx, dword [esp + 0x10]
lea ebx, [ebx]
lea esi, [ebx + 0xc]
mov dword [esp + 0x18], esi
test esi, esi
je 0x515308
mov eax, dword [esi]
test eax, eax
je 0x515308
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 2
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x51537b
mov edx, dword [eax]
mov dword [esp + 0x10], edx
test edx, edx
je 0x515324
cmp edx, dword [edi]
je 0x51532d
add eax, 0x18
cmp eax, ecx
jne 0x515316
jmp 0x51537b
push eax
call fcn.00515830
test al, al
je 0x51535b
test esi, esi
je 0x51534e
mov eax, dword [esi]
test eax, eax
je 0x515348
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0x18], esi
push dword [esp + 0x10]
mov ecx, ebx
call fcn.00515b60
jmp 0x51537b
test esi, esi
je 0x515372
mov eax, dword [esi]
test eax, eax
je 0x51536c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x10]
call fcn.005111d0
mov byte [esp + 0x38], 1
test esi, esi
je 0x515399
mov eax, dword [esi]
test eax, eax
je 0x515391
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], 0
add edi, 0x18
cmp edi, dword [esp + 0x20]
jne 0x5152f0
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x38], 0
test eax, eax
je 0x5153de
push eax
call fcn.00564de3
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0xffffffff
test ebx, ebx
je 0x5153fb
mov eax, dword [ebx]
test eax, eax
je 0x5153f3
push eax
call esi
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret
Function at 0x515640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x596b08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
lea ebx, [edi + 0xc]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x515695
mov eax, dword [ebx]
test eax, eax
je 0x515695
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x38], 1
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x5156fa
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
lea esp, [esp]
cmp edi, dword [esi]
jne 0x5156f2
push esi
lea ecx, [esp + 0x1c]
call fcn.005161e0
mov eax, dword [esp + 0x14]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x5156e0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x515713
mov eax, dword [ebx]
test eax, eax
je 0x51570d
push eax
call esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x18]
mov edi, eax
cmp eax, dword [esp + 0x1c]
je 0x5157c2
mov ebx, dword [esp + 0x14]
lea esi, [ebx + 0xc]
mov dword [esp + 0x14], esi
test esi, esi
je 0x51573f
mov eax, dword [esi]
test eax, eax
je 0x51573f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 2
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x515789
lea ecx, [ecx]
mov edx, dword [eax]
mov dword [esp + 0x10], edx
test edx, edx
je 0x51575e
cmp edx, dword [edi]
je 0x515767
add eax, 0x18
cmp eax, ecx
jne 0x515750
jmp 0x515789
test esi, esi
je 0x515782
mov eax, dword [esi]
test eax, eax
je 0x51577c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x14], esi
mov ecx, edx
call fcn.005111d0
mov byte [esp + 0x38], 1
test esi, esi
je 0x5157a7
mov eax, dword [esi]
test eax, eax
je 0x51579f
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
add edi, 0x18
cmp edi, dword [esp + 0x1c]
jne 0x515727
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x38], 0
test eax, eax
je 0x5157ec
push eax
call fcn.00564de3
add esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 0xffffffff
test ebx, ebx
je 0x515809
mov eax, dword [ebx]
test eax, eax
je 0x515801
push eax
call esi
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret 4
Function at 0x518cf0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x597263
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push 0
push 0
mov dword [esp + 0x18], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00512440
mov dword [edi], eax
mov dword [esp + 0x1c], 2
lea esi, [edi + 8]
mov dword [esp + 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f9290
mov dword [esi], eax
mov byte [esp + 0x1c], 7
lea esi, [edi + 0x10]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051e150
mov dword [esi], eax
mov byte [esp + 0x1c], 0xa
lea esi, [edi + 0x18]
mov dword [esp + 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f9290
mov dword [esi], eax
mov byte [esp + 0x1c], 0xf
lea esi, [edi + 0x20]
mov dword [esp + 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051e2b0
mov dword [esi], eax
mov byte [esp + 0x1c], 0x14
lea esi, [edi + 0x28]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051e200
mov dword [esi], eax
mov byte [esp + 0x1c], 0x17
lea esi, [edi + 0x30]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051e200
mov dword [esi], eax
mov byte [esp + 0x1c], 0x1a
lea esi, [edi + 0x38]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051e200
mov dword [esi], eax
mov byte [esp + 0x1c], 0x1d
lea eax, [edi + 0x40]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [esp + 0x10], eax
mov word [eax], cx
mov byte [esp + 0x1c], 0x1e
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], cl
mov byte [esp + 0x1c], 0x1f
xor eax, eax
mov dword [edi + 0x8c], 7
mov dword [edi + 0x88], ecx
mov word [edi + 0x78], ax
mov dword [esp + 0x1c], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x5192c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5974a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
push dword [eax + 4]
call fcn.0051d8d0
mov eax, dword [edi + 8]
lea ecx, [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x18]
push dword [eax + 4]
call fcn.0051d8d0
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x10]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [eax], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], eax
mov dword [edi + 0x1c], 0
call fcn.0051d570
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x20]
push dword [eax + 4]
call fcn.0051d970
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x28]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x20]
mov dword [eax], eax
mov eax, dword [edi + 0x20]
mov dword [eax + 8], eax
mov dword [edi + 0x24], 0
call fcn.0051d6e0
lea ecx, [edi + 0x30]
call fcn.0051d810
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00512440
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], 2
lea eax, [esp + 0x10]
cmp edi, eax
je 0x5193b6
mov eax, dword [edi]
mov dword [edi], ecx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 3
lea ecx, [esp + 0x10]
call fcn.005123d0
mov dword [esp + 0x20], 0xffffffff
push dword [esp + 0x10]
call fcn.00564de3
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret