joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530580
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, edx
push edi
push dword [0x633a20]
mov edi, ecx
mov dword [esp + 0x1c], esi
lea eax, [esi*4]
mov dword [esp + 0x20], edi
push eax
call sym.SystemInformer.exe_Ordinal_1240
push eax
call sym.SystemInformer.exe_Ordinal_1238
mov ebx, eax
xor ebp, ebp
mov dword [esp + 0x14], ebx
test esi, esi
je 0x5306fa
mov ecx, dword [esp + 0x24]
lea eax, [ecx*4]
mov dword [esp + 0x10], eax
nop dword [eax + eax]
push dword [0x633a20]
push eax
call sym.SystemInformer.exe_Ordinal_1240
cmp dword [0x62db64], 0xffffffff
mov edi, eax
mov eax, dword [0x6356cc]
jae 0x530604
cmp eax, 0x40
jae 0x530604
lfence
mov esi, dword fs:[0x18]
mov esi, dword [esi + eax*4 + 0xe10]
jmp 0x53060d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
je 0x5306c1
mov eax, dword [esi]
cmp eax, 0x40
jae 0x530627
mov dword [esi + eax*4 + 4], edi
inc dword [esi]
jmp 0x5306c1
mov ecx, dword [esi + 0x10c]
mov ebx, dword [0x633a54]
test ecx, ecx
jne 0x530657
push 0x100
push 4
push ebx
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword ds:[esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x5306ae
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
test eax, eax
jne 0x53068a
test ecx, ecx
je 0x530686
push ecx
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ecx, ecx
jmp 0x5306a8
push eax
test ecx, ecx
je 0x53069b
push ecx
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x5306a6
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov ebx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
inc dword [esi + 0x104]
push dword [esp + 0x10]
mov dword [ebx + ebp*4], edi
push 0
push edi
call fcn.005861d0
mov eax, dword ds:[esp + 0x1c]
inc ebp
add esp, 0xc
cmp ebp, dword [esp + 0x18]
jb 0x5305d0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 0x10
ret 4
mov dword [edi], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x531aa0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ecx
push esi
mov esi, dword [0x630cd0]
push edi
push esi
push 4
push dword [0x633a54]
mov dword [esp + 0x14], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 8]
push eax
push esi
push edi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
cmp ecx, 0xc0000004
jne 0x531b0e
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 8]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push edi
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
lfence
test ecx, ecx
js 0x531b32
mov eax, dword ds:[esp + 8]
cmp eax, 0x100000
ja 0x531b2c
mov dword [0x630cd0], eax
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
mov eax, ecx
pop esi
pop ecx
ret 4
Function at 0x531b40
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 0x134
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x12c], eax
push 0x120
lea eax, [esp + 0xc]
push 0
push eax
call fcn.005861d0
add esp, 0xc
mov dword [esp + 4], 0x120
lea eax, [esp + 4]
push eax
push 0x120
lea eax, [esp + 0x10]
push eax
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
je 0x531bcc
cmp eax, 0xc0000004
jne 0x531bcc
cmp dword [esp + 8], 1
jb 0x531bcc
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x531ba0
sub ecx, edx
lea eax, [esp + 0x28]
push ecx
push eax
call sym.SystemInformer.exe_Ordinal_1315
mov ecx, dword ds:[esp + 0x12c]
xor ecx, esp
call fcn.00583f9f
add esp, 0x134
ret
mov ecx, dword [esp + 0x12c]
xor eax, eax
xor ecx, esp
call fcn.00583f9f
add esp, 0x134
ret

Function at 0x531bf0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
cmp dword [0x62db64], 0x64
jb 0x531c2d
mov ecx, dword [0x630cec]
test ecx, ecx
jne 0x531c0e
add esp, 0xc
jmp sym.SystemInformer.exe_Ordinal_1430
mov eax, dword [str.SystemRootSystem32_ntoskrnl.exe]
push 0
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 0
push eax
mov dword [esp + 0xc], ecx
call sym.SystemInformer.exe_Ordinal_1331
add esp, 0xc
ret
add esp, 0xc
jmp sym.SystemInformer.exe_Ordinal_1514

Function at 0x531c40
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 0x134
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
mov ebx, dword [esp + 0x144]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x140]
push edi
mov edi, dword [esp + 0x148]
push 0x120
push 0
push eax
call fcn.005861d0
add esp, 0xc
mov dword [esp + 0xc], 0x120
lea eax, [esp + 0xc]
push eax
push 0x120
lea eax, [esp + 0x20]
push eax
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop
test eax, eax
je 0x531d1b
cmp eax, 0xc0000004
jne 0x531d20
cmp dword [esp + 0x18], 1
jb 0x531d1b
test esi, esi
je 0x531cf9
cmp dword [0x62db64], 0x64
jb 0x531ced
mov ecx, dword [0x630cdc]
test ecx, ecx
jne 0x531cd0
call sym.SystemInformer.exe_Ordinal_1430
jmp 0x531cf7
mov eax, dword [str.SystemRootSystem32_ntoskrnl.exe]
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x1c], ecx
call sym.SystemInformer.exe_Ordinal_1331
jmp 0x531cf7
lea eax, [esp + 0x38]
push eax
call sym.SystemInformer.exe_Ordinal_1313
mov dword [esi], eax
cmp dword [0x62db64], 0x71
mov eax, dword [esp + 0x24]
jb 0x531d0f
test eax, eax
jne 0x531d0f
mov eax, 0xfffffffe
mov dword [edi], eax
mov eax, dword [esp + 0x28]
mov dword [ebx], eax
xor eax, eax
jmp 0x531d20
mov eax, 0xc0000001
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f9f
add esp, 0x134
ret 0xc
Function at 0x533880
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
movzx eax, word [ecx]
mov word [esp + 0x20], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 0x22], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
jbe 0x5338bc
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
nop dword [eax]
call fcn.00533560
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x28]
push ecx
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov ecx, dword ds:[esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
js 0x5339c4
mov edx, dword [ecx]
cmp edx, 7
je 0x5339bf
cmp edx, 8
je 0x5339bf
cmp dword [ebp + 0xc], 0
je 0x533959
mov ebx, dword [ecx + 4]
movzx eax, byte [ebx + 1]
lea edi, [eax*4 + 8]
push edi
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.00586330
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [eax], esi
mov esi, dword ds:[ebp + 0x10]
test esi, esi
je 0x5339b2
mov eax, dword [ecx + 8]
test eax, eax
js 0x5339a7
lea ecx, ds:[eax + eax*2]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*4]
movzx ecx, word [eax]
test cx, cx
je 0x5339a7
mov eax, dword ds:[eax + 4]
mov dword [esp + 0x1c], eax
mov eax, ecx
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 0
push eax
call sym.SystemInformer.exe_Ordinal_1331
jmp 0x5339ac
call sym.SystemInformer.exe_Ordinal_1430
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x5339c4
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x5339c4
mov ebx, 0xc0000073
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5339d7
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5339e6
push ecx
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x534a80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov esi, ecx
call fcn.005334a0
mov ecx, dword [esi + 2]
mov edx, eax
cmp ecx, dword [edx + 2]
jne 0x534b38
movzx eax, word [esi + 6]
cmp ax, word [edx + 6]
jne 0x534b38
cmp dword [esi + 8], 1
jne 0x534b38
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
call sym.SystemInformer.exe_Ordinal_1621
mov esi, eax
test esi, esi
je 0x534b38
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
add ecx, 2
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
push 0
and ecx, 0xfffffffe
push 0
sub ecx, 4
push eax
mov dword [esp + 0x18], ecx
call sym.SystemInformer.exe_Ordinal_1331
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x534b25
nop
call fcn.004fe1e0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret

Function at 0x535d70
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
push edi
push 0
push 0x1c
push eax
push 0
push ecx
push 0xffffffffffffffff
mov esi, edx
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x535dd5
mov ecx, dword [esp + 0xc]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x535dd5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x535dd5
mov edx, dword [eax + 0xd8]
mov edi, dword [eax + 0xdc]
test edx, edx
je 0x535dd5
test edi, edi
je 0x535dd5
lea eax, [edx + ecx]
cmp esi, eax
jb 0x535dd5
lea eax, [edi + edx]
add eax, ecx
cmp esi, eax
jae 0x535dd5
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
Function at 0x536128
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov ebx, edx
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 0x53621b
nop dword [eax + eax]
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x536168
sub edi, 0x8000000
jmp 0x536205
push 0
push 0x1c
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0
push eax
push 0
xorps xmm0, xmm0
push edi
push 0xffffffffffffffff
movups xmmword [esp + 0x2c], xmm0
movq qword [esp + 0x3c], xmm0
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x53621b
cmp dword [esp + 0x24], 0x10000
jne 0x5361ef
cmp dword [esp + 0x20], 0x10000
jb 0x5361ef
push 0x40
push 0x3000
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10000
push eax
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x53620f
nop dword [eax]
cmp eax, 0xc0000604
je 0x53621b
sub edi, 0x10000
jmp 0x536205
mov ecx, dword [esp + 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x536150
jmp 0x53621b
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x53630a
movzx eax, si
test eax, eax
je 0x53622c
sub esi, eax
add esi, 0x10000
mov edi, dword [esp + 0x34]
cmp esi, edi
jae 0x536308
nop dword [eax + eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x536258
add esi, 0x8000000
jmp 0x5362f8
push 0
push 0x1c
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0
push eax
push 0
xorps xmm0, xmm0
push esi
push 0xffffffffffffffff
movups xmmword [esp + 0x2c], xmm0
movq qword [esp + 0x3c], xmm0
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x536308
cmp dword [esp + 0x24], 0x10000
mov ecx, dword [esp + 0x20]
jne 0x5362e2
nop dword [eax + eax]
cmp ecx, 0x10000
jb 0x5362e2
push 0x40
push 0x3000
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10000
push eax
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x536313
cmp eax, 0xc0000604
je 0x536308
add esi, 0x10000
jmp 0x5362f8
mov esi, dword [esp + 0x14]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x5362f8
mov eax, 0x10000
sub eax, ecx
add esi, eax
nop dword [eax + eax]
cmp esi, edi
jb 0x536240
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov eax, dword ds:[esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x53a1a0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
xor esi, esi
mov byte [esp + 0xf], 0
mov byte [esp + 0xe], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
push edi
mov edi, dword [esp + 0x3c]
test bl, 1
ret
invalid
je 0x53a1f0
lea eax, ds:[esp + 0x12]
push eax
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetOwnerSecurityDescriptor]
test eax, eax
mov ecx, 1
cmovns esi, ecx
test bl, 2
je 0x53a20d
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetGroupSecurityDescriptor]
test eax, eax
js 0x53a20d
or esi, 2
mov ebp, ebx
and ebp, 4
je 0x53a238
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetDaclSecurityDescriptor]
test eax, eax
js 0x53a238
cmp byte [esp + 0x13], 0
je 0x53a238
or esi, 4
and ebx, 8
je 0x53a261
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1b]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetSaclSecurityDescriptor]
test eax, eax
js 0x53a261
cmp byte [esp + 0x13], 0
je 0x53a261
or esi, 8
cmp dword [esp + 0x34], 1
jne 0x53a2bc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetControlSecurityDescriptor]
test eax, eax
js 0x53a2bc
mov cx, word [esp + 0x14]
test ebp, ebp
je 0x53a29e
movzx eax, cx
test eax, 0x1000
je 0x53a298
or esi, 0x80000000
jmp 0x53a29e
or esi, 0x20000000
nop
test ebx, ebx
je 0x53a2bc
movzx eax, cx
test eax, 0x2000
je 0x53a2b6
or esi, 0x40000000
jmp 0x53a2bc
or esi, 0x10000000
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
push esi
push dword [esp + 0x48]
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x53a2f0
push eax
call sym.SystemInformer.exe_Ordinal_1343
add esp, 0x1c
ret 0x10
xor eax, eax
add esp, 0x1c
ret 0x10
Function at 0x53b820
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
push 0x60
push 1
push 5
push 0x80
push 0x120089
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push eax
call sym.SystemInformer.exe_Ordinal_1467
test eax, eax
jns 0x53b875
lfence
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 5
push 0x18
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x53b8de
movq xmm0, qword [esp + 0x30]
movaps xmm1, xmmword [esp + 0x20]
movq qword [esp + 0x30], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
movd ecx, xmm0
movd eax, xmm1
or ecx, eax
jne 0x53b8de
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 8
push ecx
mov edx, edi
call fcn.0057bcc0
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x53b925
cmp dword [esi], 0
jne 0x53b91b
mov eax, dword ds:[esp + 0x14]
test eax, eax
je 0x53b906
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0057e940
mov ecx, dword [esp + 0x4c]
mov eax, 0xc0000102
pop edi
pop esi
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 8
Function at 0x53b940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x631310
push fcn.0057dfb0
push 0
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.0057e140
test eax, eax
jns 0x53b98e
or esi, 0xffffffff
jmp 0x53b9bb
mov esi, dword [esp + 0x18]
jle 0x53b9a6
cmp esi, dword [esp + 0x1c]
jae 0x53b9a1
mov byte [esi], 0xa
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x1c]
jae 0x53b9b3
mov byte [esi], 0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x53bad1
push esi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x53bad1
mov ecx, dword ds:[ebp + 0xc]
mov edx, ebx
push edi
push esi
call fcn.0057bd20
mov dword [esp + 0x14], eax
test eax, eax
jne 0x53b9f7
mov edi, 0xc0000001
jmp 0x53bab3
mov esi, dword [ebp + 8]
mov ecx, esi
cdq
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call fcn.0051cf20
mov edi, eax
test edi, edi
js 0x53bab3
mov edx, 0x6310f0
mov ecx, esi
lfence
call fcn.004f7ec0
push ecx
push 0x60
push 5
push 0
push ecx
mov esi, eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x34]
mov edx, esi
push eax
push 0
push 0x130116
call fcn.0051bde0
mov edi, eax
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x53ba5e
lfence
call fcn.004fe1e0
mov esi, dword [esp + 0x10]
test edi, edi
js 0x53baa8
push 0
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x34]
push ebx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
test edi, edi
js 0x53baa8
lea eax, [esp + 0x18]
push eax
push esi
lfence
call dword [sym.imp.ntdll.dll_NtFlushBuffersFile]
push dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.005176e0
mov edi, eax
test esi, esi
je 0x53bab3
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0xc0000001
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53bf40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x627608
push 0x5850c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62d040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [edi + 4], edx
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
cmp eax, 0x40
jae 0x53bf9e
mov eax, 0xc000001f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
nop
test edx, edx
je 0x53c138
cmp edx, 0xffffffff
je 0x53c138
mov dword ds:[ebp - 4], 0
lea esi, [edx + 0x40]
cmp esi, edx
jb 0x53c0b2
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x53c0b2
mov dword [ebp - 4], 0xfffffffe
mov ecx, 0x5a4d
cmp word [edx], cx
je 0x53c003
mov eax, 0xc000012f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lfence
mov ecx, dword [edx + 0x3c]
cmp ecx, eax
jae 0x53c0ee
cmp ecx, 0x10000000
jae 0x53c0ee
lea esi, [ecx + edx]
mov dword [ebp - 4], 1
lea ebx, [esi + 0x18]
cmp ebx, esi
jb 0x53c0b2
cmp esi, edx
jb 0x53c0b2
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
ja 0x53c0b2
movzx eax, word [esi + 6]
lea ecx, [eax + eax*4]
movzx eax, word [esi + 0x14]
lea eax, [eax + ecx*8]
add eax, 0x18
add eax, esi
cmp eax, esi
jb 0x53c0b2
cmp eax, edx
ja 0x53c0b2
mov dword [ebp - 4], 0xfffffffe
cmp dword [esi], 0x4550
jne 0x53c0ee
movzx eax, word [ebx]
mov word [edi + 0x18], ax
mov ecx, 0x10b
cmp ax, cx
je 0x53c086
mov ecx, 0x20b
cmp ax, cx
jne 0x53c0ee
mov dword [edi + 0xc], esi
movzx eax, word [esi + 6]
mov dword [edi + 0x10], eax
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, esi
mov dword [edi + 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0000005
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, 1
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x53c280
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
test esi, esi
jne 0x53c2da
test eax, eax
jne 0x53c2aa
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x60
push 1
push 5
push 0x80
push 0x100081
push eax
lea eax, [ebp + 0xc]
push eax
call sym.SystemInformer.exe_Ordinal_1467
test eax, eax
jns 0x53c2d5
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov bl, 1
push esi
push 0x8000000
push 2
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0x18
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
push 5
lea eax, [esp + 0x24]
mov dword [esp + 0x44], 0x20
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x34], 0x1000
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test bl, bl
je 0x53c346
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x53c358
lfence
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 2
push 0
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1000
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x53c3a8
lfence
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.0053bf40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc