joyce8/EMBER2024-capa huggingface dataset:
Function at 0x37f9e2de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0x20]
push edi
test bl, 8
je 0x37f9e31e
cmp dword [esp + 0x20], 1
jge 0x37f9e30e
push 0
push 0x37f61df4
push 0x7176667a
push 0x37f61df4
call fcn.37f8cdaa
pop edi
or eax, 0xffffffff
pop ebx
ret 0x20
mov edi, dword [esp + 0x1c]
test bl, 1
je 0x37f9e35d
xor eax, eax
mov word [edi], ax
jmp 0x37f9e360
cmp dword [esp + 0x20], 2
jge 0x37f9e343
push 0
push 0x37f61df4
push 0x64616c77
push 0x37f61df4
call fcn.37f8cdaa
pop edi
or eax, 0xffffffff
pop ebx
ret 0x20
mov edi, dword [esp + 0x1c]
test bl, 1
je 0x37f9e359
xor ecx, ecx
xor edx, edx
mov word [edi + 2], cx
mov word [edi], dx
jmp 0x37f9e360
mov byte [edi + 1], 0
mov byte [edi], 0
push ebp
push esi
mov esi, dword [esp + 0x18]
push esi
call fcn.37fa20e2
test eax, eax
jne 0x37f9e3a2
mov ebp, dword [esp + 0x1c]
lea eax, [ebp + 1]
movzx ecx, ax
push 0xd9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x37f9e3a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x37f9e3a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x37f9e3ac
pop esi
pop ebp
pop edi
or eax, 0xffffffff
pop ebx
ret 0x20
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edx
push ebx
push ecx
movzx ecx, word [esp + 0x2c]
movzx edx, bp
push edi
shl edx, 0x10
or edx, ecx
push edx
mov edx, dword [esp + 0x28]
push eax
push esi
push edx
call fcn.37f9e18d
pop esi
pop ebp
pop edi
pop ebx
ret 0x20

Function at 0x37fa0ba8
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x37fae940
call fcn.37fad6a0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x37fa0be6
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x37fa0be6
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x37fa0be6
mov eax, dword [ecx + 0x50]
jmp 0x37fa0c07
mov ecx, 0x4550
cmp dx, cx
jne 0x37fa0c13
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x37fa0c13
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x37fa0c13
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x37fa0c17
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.37fad6e5
ret 4
Function at 0x37fa3099
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x37f7d24c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR90.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.37facac9
leave
ret

Function at 0x37fa6815
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x37fe9684
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x37fa6866
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x37fe9688], eax
mov ax, word [ebp - 0x30]
mov word [0x37fe968c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x37fe9690], eax
mov eax, dword [ebp - 0x40]
mov dword [0x37fe9694], eax
mov eax, esi
pop esi
leave
ret
Function at 0x37fa886a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x37f7d24c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x37fe9728
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x1f], 2
jne 0x37fa8a7f
mov eax, dword [esi + 0x14]
push edi
mov edi, 0x37fe9764
cmp eax, ebx
je 0x37fa88c0
push eax
mov ecx, edi
call fcn.37fa9f8a
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x37fa89c1
lea eax, [ebp - 0x23c]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x37f7cf80
push ebx
call fcn.37fa9c22
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x37fa89c1
mov eax, dword [ebp - 0x238]
push 4
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 0x220], 1
neg ecx
or eax, ecx
push eax
mov ecx, edi
call fcn.37fa9f60
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x37fa89d1
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x238], ebx
jbe 0x37fa8995
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x23c]
push dword [eax + ecx*4]
call fcn.37fa8643
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x37fa897a
movzx eax, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x224]
mov dword [ecx + eax*4], edx
inc byte [esi + 0x1d]
jmp 0x37fa8981
cmp eax, 0x8007000e
je 0x37fa89ac
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x238]
jb 0x37fa8940
cmp byte [esi + 0x1d], bl
jne 0x37fa8a6b
mov eax, dword [esi + 0x14]
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
jmp 0x37fa8a6b
push dword [esi + 0x14]
mov ecx, edi
call fcn.37fa9f8a
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
jmp 0x37fa8a7e
push 4
mov ecx, edi
call fcn.37fa9f60
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x37fa89e0
mov dword [ebp - 0x218], 0x8007000e
jmp 0x37fa8a7e
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
call fcn.37faa0c5
test al, al
je 0x37fa8a10
cmp dword [esi + 8], 0x1000
jne 0x37fa8a10
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 4]
call fcn.37faa093
jmp 0x37fa8a27
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x37fa8a6b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.37fa7bb4
test eax, eax
je 0x37fa8a5f
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.37fa9ecd
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x37fa8a7e
cmp dword [esi + 8], 0xc00
je 0x37fa8a78
or byte [esi + 0x1f], 2
mov dword [ebp - 0x218], ebx
pop edi
push 0x37fe9728
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], ebx
pop esi
pop ebx
je 0x37fa8aa0
lea eax, [ebp - 0x23c]
push eax
call fcn.37fa9c8f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.37facac9
leave
ret 4
Function at 0x37faa0c5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x37f7d24c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x37fe9777], 0
jne 0x37faa11f
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x37faa118
cmp dword [ebp - 0x110], 2
jne 0x37faa118
cmp dword [ebp - 0x11c], 6
jb 0x37faa118
call fcn.37fa9fa6
mov byte [0x37fe9776], al
mov byte [0x37fe9777], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x37fe9776]
xor ecx, ebp
call fcn.37facac9
leave
ret

Function at 0x37faa130
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x37f7d24c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x160], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x168], edi
call fcn.37faa0c5
test al, al
je 0x37faa177
push dword [ebp + 0x10]
push edi
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x160], eax
jmp 0x37faa21a
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x56
lea eax, [ebp - 0xb0]
push eax
push 0x59
push dword [ebp + 8]
call esi
push 0x56
mov ebx, eax
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push dword [ebp + 8]
call esi
cmp ebx, 1
jle 0x37faa218
cmp eax, 1
jle 0x37faa1f9
mov esi, dword [ebp + 0x10]
add eax, ebx
cmp eax, esi
mov dword [ebp - 0x164], eax
jg 0x37faa218
lea eax, [ebp - 0xb0]
push eax
push esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_wcscpy_s]
call edi
mov eax, dword [ebp - 0x168]
push 0x2d
pop ecx
lea eax, [eax + ebx*2]
mov word [eax - 2], cx
lea ecx, [ebp - 0x15c]
push ecx
sub esi, ebx
push esi
push eax
call edi
mov eax, dword [ebp - 0x164]
add esp, 0x18
mov dword [ebp - 0x160], eax
jmp 0x37faa218
cmp ebx, dword [ebp + 0x10]
jg 0x37faa218
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 0x160], ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x160]
xor ecx, ebp
pop edi
call fcn.37facac9
leave
ret 0xc

Function at 0x37fab4b5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x37fab515
cmp eax, edi
je 0x37fab515
push edi
push edi
push edi
push 2
push edi
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
je 0x37fab515
cmp eax, edi
je 0x37fab515
push edi
push edi
push edi
push 4
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
inc eax
jmp 0x37fab517
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x37faca15
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x37f7d250
push 0x37f62b88
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x37faca4a
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x37f7d24c
push ebx
call edi
mov dword [0x37f7d24c], esi
test esi, esi
jne 0x37facaae
mov dword [0x37f7d24c], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x37fe2388], 0x44bf19b1
pop ebx
leave
ret

Function at 0x37facac9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x37f7d24c]
jne 0x37fadbcd
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x37fe9900], eax
mov dword [0x37fe98fc], ecx
mov dword [0x37fe98f8], edx
mov dword [0x37fe98f4], ebx
mov dword [0x37fe98f0], esi
mov dword [0x37fe98ec], edi
mov word [0x37fe9918], ss
mov word [0x37fe990c], cs
mov word [0x37fe98e8], ds
mov word [0x37fe98e4], es
mov word [0x37fe98e0], fs
mov word [0x37fe98dc], gs
pushfd
pop dword [0x37fe9910]
mov eax, dword [ebp]
mov dword [0x37fe9904], eax
mov eax, dword [ebp + 4]
mov dword [0x37fe9908], eax
lea eax, [ebp + 8]
mov dword [0x37fe9914], eax
mov eax, dword [ebp - 0x320]
mov dword [0x37fe9850], 0x10001
mov eax, dword [0x37fe9908]
mov dword [0x37fe9804], eax
mov dword [0x37fe97f8], 0xc0000409
mov dword [0x37fe97fc], 1
mov eax, dword [0x37f7d24c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x37fe2388]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x37fe9848], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x37f7d3fc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x37fe9848], 0
jne 0x37fadcb9
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x37facaf8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.37facae1
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x37f61c1c
push SysReAllocString
call esi
test eax, eax
jne 0x37facba1
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.37facae1
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x37facb93
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x37f7d274
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x37facb93
cmp dword [ebp + 8], esi
jne 0x37facb93
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x37facb93
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x37facb85
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x37facb8f
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x37facbb1
cmp dword [ebp - 4], ebx
je 0x37facba1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x37facbaf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x37facbb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x37fe97b8], 0
je 0x37facbcd
mov eax, dword [0x37fe97b4]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.37facae1
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x37f7d2c8
mov edi, SysReAllocString
push edi
call esi
test eax, eax
jne 0x37facc2e
lea eax, [ebp - 8]
push eax
push 0x37fe97b4
push 0
push 0
push dword [0x37fe2390]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x37facc2e
cmp dword [ebp - 8], 4
jne 0x37facc2e
cmp dword [ebp - 4], eax
jmp 0x37facc73
lea ecx, [ebp - 4]
call fcn.37facae1
push eax
push ebx
xor ebx, ebx
push ebx
push 0x37f7d28c
push edi
call esi
test eax, eax
jne 0x37facc8f
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x37fe97b4
push ebx
push ebx
push dword [0x37fe2390]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x37facc8f
cmp dword [ebp - 8], esi
jne 0x37facc8f
cmp dword [ebp - 4], ebx
mov esi, dword [0x37fe97b4]
mov byte [0x37fe97b8], 1
je 0x37facc8b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x37faccac
mov dword [0x37fe97b4], ebx
mov byte [0x37fe97b8], 1
cmp dword [ebp - 4], ebx
je 0x37faccaa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x77441d85
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 4], 0
mov eax, ecx
and dword [ebp - 0xc], 0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 7
push edi
test eax, eax
je 0x774a8533
mov edi, dword [ebp + 8]
test edi, edi
je 0x774a8533
cmp dword [ebp + 0xc], ebx
je 0x774a8533
push 0x77424a00
lea eax, [ebp - 0x18]
push eax
call fcn.77494f40
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x28], eax
xor ecx, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ecx
push eax
push 0x20019
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], ecx
push eax
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
call fcn.77492a60
test eax, eax
js 0x77441e3a
push 0x774249c8
lea eax, [ebp - 0x18]
push eax
call fcn.77494f40
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x18]
call fcn.77449971
mov ecx, eax
mov esi, 0xc0000034
cmp ecx, esi
jne 0x774a84a6
xor esi, esi
mov byte [edi], 1
cmp dword [ebp - 4], 0
je 0x77441e4d
push dword [ebp - 4]
call fcn.77492a30
test ebx, ebx
jne 0x774a853d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x77441e3a
cmp ecx, 0x80000005
jne 0x77441e3f
add eax, 2
push eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call fcn.77463940
mov ebx, eax
test ebx, ebx
jne 0x774a84e1
mov esi, 0xc0000017
jmp 0x77441e3f
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x18]
call fcn.77449971
mov esi, eax
test esi, esi
js 0x77441e3f
cmp dword [ebp - 8], 7
je 0x774a8510
cmp dword [ebp - 8], 1
jne 0x77441e3a
push dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, ebx
mov ecx, dword [ebp - 0x10]
push 1
push 3
push 8
shr eax, 1
push eax
mov byte [edi], 0
call fcn.77454c4b
mov esi, eax
jmp 0x77441e3f
mov esi, 0xc000000d
jmp 0x77441e3f
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call fcn.77461440
jmp 0x77441e55
Function at 0x77442020
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x774a94f5
test bl, 7
jne 0x774a94f5
mov al, byte [ebx + 7]
test al, 0x3f
je 0x774a94f5
test al, al
js 0x7744210f
cmp dword [esi + 0x4c], 0
je 0x77442078
mov eax, dword [ebx]
mov ecx, eax
xor ecx, dword [esi + 0x50]
mov dword [ebp - 8], eax
mov dword [ebp - 8], ecx
mov al, byte [ebp - 6]
xor al, byte [ebp - 7]
xor al, cl
shr ecx, 0x18
cmp cl, al
jne 0x774a94f5
cmp byte [ebx + 7], 4
je 0x774a94d5
mov al, byte [ebx + 6]
test al, al
je 0x7744212f
movzx eax, al
mov ecx, ebx
shl eax, 0x10
and ecx, 0xffff0000
sub ecx, eax
add ecx, 0x10000
test ecx, ecx
je 0x774a94f5
cmp dword [ecx + 0x18], esi
jne 0x774a94f5
cmp ebx, dword [ecx + 0x24]
jb 0x774a94f5
cmp ebx, dword [ecx + 0x28]
jae 0x774a94f5
cmp dword [esi + 0x4c], 0
je 0x7744213a
mov eax, dword [ebx]
test dword [esi + 0x4c], eax
je 0x774420d6
xor eax, dword [esi + 0x50]
shr eax, 0x10
test al, 4
jne 0x774a94e6
cmp byte [ebx + 7], 4
je 0x77442101
lea ecx, [esi + 0xa4]
mov eax, dword [ecx]
cmp eax, ecx
je 0x774a94f5
cmp ebx, dword [eax + 0x14]
jb 0x7744210b
cmp ebx, dword [eax + 0x18]
jae 0x7744210b
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax]
jmp 0x774420ef
cmp byte [esi + 0xda], 2
jne 0x77442136
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x774a94f5
cmp al, 4
jne 0x77442101
jmp 0x774a94f5
mov ecx, esi
jmp 0x774420a3
xor ecx, ecx
jmp 0x7744211e
mov al, byte [ebx + 2]
jmp 0x774420d9
mov eax, ebx
and eax, 0xfff
cmp eax, 0x18
jne 0x774a94f5
jmp 0x774420c6
mov ecx, esi
call fcn.774f428f
test al, al
jne 0x774420e1
mov eax, dword fs:[0x30]
cmp dword [eax + 0xc], 0
je 0x774a951e
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add eax, 0x2c
push eax
push 0x77424db0
call fcn.7744afb0
pop ecx
jmp 0x774a9528
push 0x77424dbc
call fcn.7744afb0
pop ecx
lea eax, [ebx + 8]
push eax
push esi
push dword [ebp + 8]
push 0x7743ea14
call fcn.7744afb0
mov eax, dword fs:[0x30]
add esp, 0x10
cmp byte [eax + 2], 0
je 0x774a9559
mov byte [0x77536255], 1
int3
xor al, al
jmp 0x77442103

Function at 0x7744213f
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x60], 0xeeffeeff
jne 0x774a9560
mov al, 1
pop edi
pop esi
pop ecx
ret
mov eax, dword fs:[0x30]
cmp dword [eax + 0xc], 0
je 0x774a9589
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add eax, 0x2c
push eax
push 0x77424db0
call fcn.7744afb0
pop ecx
jmp 0x774a9593
push 0x77424dbc
call fcn.7744afb0
pop ecx
push edi
push 0x774275e0
call fcn.7744afb0
pop ecx
pop ecx
test esi, esi
je 0x774a95b2
push esi
push 0x77427608
call fcn.7744afb0
pop ecx
pop ecx
push 0x77427618
call fcn.7744afb0
mov eax, dword fs:[0x30]
pop ecx
cmp byte [eax + 2], 0
je 0x774a95d8
mov byte [0x77536255], 1
int3
xor al, al
jmp 0x77442157
Function at 0x77442630
Capabilities:
Access peb ldr_data

Disassembly:
push 0x18
push 0x7751f100
call fcn.774a611c
mov dword [ebp - 0x1c], 0xc0000001
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x28], bl
jne 0x77442728
test edi, edi
je 0x774a9a92
mov dword [ebp - 4], ebx
xor edx, edx
lea ecx, [ebp - 0x20]
call fcn.77458f34
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x77442778
lea eax, [edi + 8]
push eax
call fcn.77466460
xor esi, esi
inc esi
mov dword [ebp - 4], esi
or dword [edi + 4], 8
push ebx
push ebx
push ebx
push dword [edi + 0x18]
call fcn.7744bd80
mov dword [ebp - 4], ebx
call fcn.77442765
lea eax, [edi + 0xc]
mov dword [ebp - 0x24], eax
lock or dword [eax], esi
test byte [edi + 4], 4
jne 0x7744274d
mov esi, ebx
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x7744273e
test eax, eax
jne 0x774a9aac
mov ecx, dword [edi + 0x18]
call fcn.7744277d
mov dword [ebp - 0x28], eax
push dword [edi + 0x18]
call fcn.7746c990
push 0xfffffffffffffffe
pop ecx
mov edi, dword [ebp - 0x24]
mov eax, dword [edi]
mov edx, eax
and edx, ecx
lock cmpxchg dword [edi], edx
jne 0x774426e8
mov edx, eax
test dl, 2
mov edi, dword [ebp + 8]
jne 0x7744272c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x7744273a
neg esi
sbb esi, esi
and esi, 0xfffffefd
add esi, 0x103
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ecx
call fcn.7744276f
mov eax, esi
call fcn.774a6161
ret 8
xor eax, eax
jmp 0x77442720
mov ecx, edi
call fcn.774427db
mov eax, ebx
push 0xfffffffffffffffe
pop ecx
jmp 0x774426ff
mov esi, ebx
jmp 0x77442713
test esi, esi
jne 0x774426cd
push ebx
push dword [edi + 0x18]
call fcn.7746f7a0
jmp 0x774426cd
mov ecx, dword fs:[0x18]
mov eax, dword [edi + 0x30]
cmp eax, dword [ecx + 0x24]
jne 0x774426bb
jmp 0x774426bd
push 0xfffffffffffffffe
pop ecx
jmp 0x77442716
mov eax, 0xc00000ef
jmp 0x77442720
mov dword [edi + 0x2c], eax
jmp 0x774426cd