joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51db40
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
push ebx
movzx eax, word [ecx]
mov ebx, dword [ebp + 0x14]
mov word [esp + 0x18], ax
add eax, 2
mov word [esp + 0x1a], ax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
push esi
push edi
movzx eax, word [ecx]
mov edi, dword [ebp + 0x18]
mov word [esp + 0x18], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 0x1a], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
jbe 0x51dbcc
mov eax, 0x80000005
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlGUIDFromString]
nop dword [eax]
test eax, eax
jns 0x51dbfb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
cmp eax, 0xc0000023
je 0x51dc37
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0x14
push dword [esp + 0x10]
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [esp + 0x10]
mov esi, eax
push 0
push esi
call fcn.005861b0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
mov dword [esp + 0x18], eax
test eax, eax
js 0x51dcb1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51dc89
mov dword [eax], esi
jmp 0x51dc9b
push esi
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
je 0x51dca5
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
test edi, edi
je 0x51dcc6
mov eax, dword [esp + 0x14]
mov dword [edi], eax
jmp 0x51dcc6
push esi
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x51ddc0
Capabilities:
Get uefi variable

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x1000
push 4
push dword [0x633a74]
mov dword [esp + 0x18], 0x1000
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtEnumerateSystemEnvironmentValuesEx]
mov esi, eax
cmp esi, 0xc0000023
je 0x51de08
nop dword [eax]
cmp esi, 0xc0000004
jne 0x51de2b
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0xc]
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x51dde3
test esi, esi
js 0x51de3e
mov eax, dword [esp + 0x18]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 8
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x51e220
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
push ebp
push esi
cmp ecx, 4
jg 0x51e264
je 0x51e257
test ecx, ecx
je 0x51e24a
cmp ecx, 3
jne 0x51e26c
mov esi, dword [0x6309c4]
mov ebp, 0x6309c4
jmp 0x51e284
mov esi, dword [0x6309c0]
mov ebp, 0x6309c0
jmp 0x51e284
mov esi, dword [0x6309c8]
mov ebp, 0x6309c8
jmp 0x51e284
cmp ecx, 0xffff
je 0x51e279
pop esi
mov eax, 0xc0000003
pop ebp
add esp, 0xc
ret 4
mov esi, dword [0x6309cc]
mov ebp, 0x6309cc
push ebx
push edi
push esi
push 4
push dword [0x633a74]
mov dword [esp + 0x1c], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
push ebx
push 4
lea eax, [esp + 0x24]
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x51e311
nop dword [eax]
cmp esi, 8
jae 0x51e315
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x51e2c0
test edi, edi
jns 0x51e333
push ebx
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 4
lfence
mov ecx, dword [esp + 0x10]
cmp ecx, 0x100000
ja 0x51e34b
mov dword [ebp], ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x51e600
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov al, byte [eax + 2]
ret
Function at 0x51e860
Capabilities:
Resume thread

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x18], 0
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
push ebx
push str.RtlExitUserThread
mov edi, ecx
mov dword [esp + 0x2c], 0
push 0x6309f4
push edi
mov ebp, edx
mov dword [esp + 0x2c], ebx
call sym.SystemInformer.exe_Ordinal_1525
test eax, eax
js 0x51e9bb
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push str.RtlFlushHeaps
push 0x6309f4
push edi
lfence
call sym.SystemInformer.exe_Ordinal_1525
test eax, eax
js 0x51e9bb
cmp dword [0x62db64], 0x3e
jb 0x51e8f4
lea edx, [esp + 0x14]
mov ecx, edi
lfence
call fcn.0051de60
mov ebx, dword [esp + 0x14]
mov esi, eax
test esi, esi
js 0x51e97a
push 0
lea eax, [esp + 0x20]
push eax
push 0
lfence
push dword [esp + 0x24]
push 0
push 0
push ecx
push 1
mov ecx, edi
call fcn.004fe820
mov edi, dword [esp + 0x1c]
mov esi, eax
test esi, esi
js 0x51e96f
push 0
push 0
push 0
push dword [esp + 0x2c]
push edi
call dword [sym.imp.ntdll.dll_NtQueueApcThread]
mov esi, eax
test esi, esi
js 0x51e96f
push 0
push edi
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov esi, eax
test esi, esi
js 0x51e96f
push ebp
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
js 0x51e96f
push 0
push 0x1c
lea eax, [esp + 0x3c]
push eax
push 0
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x34]
test edi, edi
je 0x51e97a
push edi
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x51e9b9
push 0
push 0
push 0x10
lea eax, [esp + 0x30]
xorps xmm0, xmm0
movups xmmword [esp + 0x30], xmm0
push eax
push 0x2c
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 3
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntdll.dll_NtPowerInformation]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x522200
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x14
mov eax, dword [0x62db64]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
push ebx
push ebp
push esi
push edi
cmp eax, 0x66
jb 0x522222
mov edi, 0x3ff
jmp 0x522233
cmp eax, 0x64
sbb edi, edi
and edi, 0xfffffe3c
add edi, 0x1ff
mov ebx, dword [0x635a74]
test ebx, ebx
jne 0x52226f
push 5
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edx, eax
test edx, edx
je 0x52226f
mov ecx, edx
mov esi, 0x635a74
xor eax, eax
lock cmpxchg dword [esi], ecx
mov ebx, eax
test ebx, ebx
jne 0x522268
mov ebx, edx
jmp 0x52226f
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [0x630bf4]
push ebp
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push 3
push edi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x522370
cmp dword [0x62db64], 0xffffffff
jae 0x5222c2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x5222c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov esi, eax
cmp esi, 0x105
jne 0x522347
mov eax, dword [esp + 0x10]
push eax
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebp, dword [esp + 0x14]
push ebp
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push 3
push edi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
nop
test eax, eax
jne 0x522370
cmp dword [0x62db64], 0xffffffff
jae 0x522338
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x52233e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov esi, eax
test esi, esi
jns 0x522372
mov eax, dword ds:[esp + 0x10]
push eax
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor esi, esi
lfence
cmp ebp, 0x20000
ja 0x522383
mov dword [0x630bf4], ebp
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5223c0
Capabilities:
Enumerate services

Disassembly:
sub esp, 8
push esi
push edi
push 0x800
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push 0x800
push edi
push 3
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x522419
xor esi, esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lfence
mov dword [eax], edi
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
add esp, 8
ret 0xc
cmp dword [0x62db64], 0xffffffff
jae 0x52242d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522433
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov esi, eax
cmp esi, 0x105
jne 0x5224b0
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 8]
push esi
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push esi
push edi
push 3
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x5223fa
cmp dword [0x62db64], 0xffffffff
jae 0x5224a2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x5224a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov esi, eax
test esi, esi
jns 0x5223fc
push edi
push 0
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
add esp, 8
ret 0xc

Function at 0x522680
Capabilities:
Create service

Disassembly:
push ecx
push ebx
push esi
push edi
push 2
push 0
push 0
mov ebx, edx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x5226c2
cmp dword [0x62db64], 0xffffffff
jae 0x5226ae
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x5226b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
test eax, eax
js 0x522739
mov esi, dword [esp + 0xc]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x522708
mov dword [edi], eax
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 0x20
cmp dword [0x62db64], 0xffffffff
mov dword [edi], 0
jae 0x522722
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522728
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 0x20
Function at 0x5227c0
Capabilities:
Modify service

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x5227db
xor eax, eax
ret 0xc
cmp dword [0x62db64], 0xffffffff
jae 0x5227f6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_Ordinal_1343
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
ret 0xc

Function at 0x522920
Capabilities:
Query service status

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x24
push eax
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
push 0
push dword [esp + 0x18]
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x52295b
xor eax, eax
pop ecx
ret 8
cmp dword [0x62db64], 0xffffffff
jae 0x522977
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_Ordinal_1343
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
pop ecx
ret 8

Function at 0x522ac0
Capabilities:
Continue service

Disassembly:
sub esp, 0x20
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x522af0
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret
cmp dword [0x62db64], 0xffffffff
jae 0x522b17
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret

Function at 0x522b40
Capabilities:
Pause service

Disassembly:
sub esp, 0x20
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x522b70
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret
cmp dword [0x62db64], 0xffffffff
jae 0x522b97
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret

Function at 0x522c00
Capabilities:
Start service

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x522c1b
xor eax, eax
ret 0xc
cmp dword [0x62db64], 0xffffffff
jae 0x522c36
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
push eax
call sym.SystemInformer.exe_Ordinal_1343
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
ret 0xc
Function at 0x522c60
Capabilities:
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
nop
test eax, eax
je 0x522c97
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret 4
cmp dword [0x62db64], 0xffffffff
nop
jae 0x522cad
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
jmp 0x522cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.SystemInformer.exe_Ordinal_1343
mov ecx, dword ds:[esp + 0x1c]
xor ecx, esp
call fcn.00583f7f
add esp, 0x20
ret 4

Function at 0x528360
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
push ebx
push esi
mov eax, dword [eax + 0x30]
mov ebx, edx
push edi
mov ecx, dword [eax + 0xc]
add ecx, 0xc
mov dword [esp + 0x10], ecx
mov esi, dword [ecx]
cmp esi, ecx
je 0x52841e
nop
cmp dword [esp + 0x14], 0
movzx edi, word [esi + 0x2c]
movzx edx, word [esi + 0x24]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x30]
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 8]
je 0x5283bd
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x10]
jne 0x528414
nop dword [eax]
test ebx, ebx
je 0x5283e7
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
cmp edx, eax
jb 0x528414
push 1
push ebx
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_Ordinal_1351
mov ecx, dword [esp + 0x10]
test al, al
je 0x528414
test edi, edi
je 0x528429
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x1c], eax
jb 0x528414
push 1
push edi
lea eax, [esp + 0x30]
push eax
call sym.SystemInformer.exe_Ordinal_1351
test al, al
jne 0x528429
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, ecx
jne 0x528390
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5284c0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp byte [ebp + 0xc], 0
push esi
je 0x5284ef
push 0x60
push 1
push 5
push 0x80
push 0x100081
push dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
call sym.SystemInformer.exe_Ordinal_1467
jmp 0x528513
mov eax, dword [ebp + 8]
push 0
push 0x60
push 1
push 5
push 0x80
push 0
push 0x100081
push dword [eax + 4]
lea eax, [esp + 0x28]
push eax
call sym.SystemInformer.exe_Ordinal_1469
test eax, eax
jns 0x528523
lfence
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x62db64], 0x3e
push dword ds:[esp + 8]
sbb eax, eax
mov dword [esp + 0x1c], 0x18
and eax, 0xf0000000
mov dword [esp + 0x20], 0
add eax, 0x11000000
mov dword [esp + 0x28], 0
push eax
push 2
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
push 5
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x48], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov esi, eax
test esi, esi
js 0x5285fa
cmp dword [0x62db64], 0x67
push 2
sbb eax, eax
mov dword [esp + 0x14], 0
and eax, 0xfffc0000
mov dword [esp + 0x18], 0
add eax, 0x40000
push eax
push 2
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword ds:[esp + 0xc]
xor esi, esi
cmp eax, 0x40000003
cmovne esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x5285fa
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5285fa
mov ecx, dword [esp + 0x10]
or ecx, 2
mov dword [eax], ecx
push dword ds:[esp + 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5289a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push 3
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
push eax
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x528a34
lea eax, ds:[esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lfence
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x528a34
test edi, edi
je 0x528a14
mov eax, dword [esp + 0x10]
mov dword [edi], eax
test esi, esi
je 0x528a1e
mov eax, dword [esp + 0x14]
mov dword [esi], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00583f7f
add esp, 0x1c
ret 0x14
mov ecx, dword ds:[esp + 0x24]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f7f
add esp, 0x1c
ret 0x14
Function at 0x528ca0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0x18]
sub esp, 8
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov edx, dword [eax]
cmp edx, eax
je 0x528cef
mov ecx, dword ds:[ebp + 8]
test ecx, ecx
je 0x528d14
cmp dword [edx + 0x18], ecx
je 0x528d14
mov edx, dword [edx]
cmp edx, eax
jne 0x528ce4
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x528d4b
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test edx, edx
je 0x528cef
movzx eax, word ds:[edx + 0x24]
mov ecx, eax
test ax, ax
jne 0x528d2e
call sym.SystemInformer.exe_Ordinal_1430
mov esi, eax
jmp 0x528cf1
mov eax, dword [edx + 0x28]
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x14], ecx
call sym.SystemInformer.exe_Ordinal_1331
mov esi, eax
jmp 0x528cf1
push esi
call sym.SystemInformer.exe_Ordinal_1509
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x528d68
call fcn.004fe0c0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x528d86
push 0
push 0x5c
push edi
call sym.SystemInformer.exe_Ordinal_1369
xor edx, edx
cmp eax, 0xffffffff
lea ecx, [eax + 1]
cmove ecx, edx
mov dword [esi], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x528da0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov edi, edx
mov esi, ecx
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x62db64], 0x3e
jb 0x528e32
test esi, esi
jne 0x528e32
test edi, edi
je 0x528e32
mov eax, dword [edi]
test eax, eax
je 0x528e04
mov edi, dword [edi + 4]
shr eax, 1
lea ebx, [edi + eax*2]
cmp edi, ebx
je 0x528e04
nop
movzx eax, word ds:[edi]
mov ecx, eax
add eax, 0xffffff9f
cmp ax, 0x19
lea edx, [ecx - 0x20]
cmova edx, ecx
imul esi, esi, 0x1003f
add edi, 2
add esi, edx
cmp edi, ebx
jne 0x528de0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
je 0x528e2e
nop word [eax + eax]
cmp dword [eax + 0x90], esi
je 0x528e3c
mov eax, dword [eax]
cmp eax, ecx
jne 0x528e20
xor eax, eax
jmp 0x528e3c
push edi
mov edx, esi
xor ecx, ecx
call fcn.00528360
nop dword [eax]
test eax, eax
je 0x528e49
mov esi, dword [eax + 0x18]
jmp 0x528e4b
xor esi, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
ret