joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51d300
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], 0
push edi
test esi, esi
jne 0x51d392
test ecx, ecx
jne 0x51d356
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
push 0x60
push 1
push 1
push 0x80
push 0x100081
push ecx
lea eax, [esp + 0x3c]
push eax
call sym.ProcessHacker.exe_PhCreateFile
test eax, eax
jns 0x51d38c
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x51d42b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push esi
push 0x8000000
push 2
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ecx
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x51d42b
mov eax, dword [esp + 0x18]
push 2
push 0
push 1
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test edi, edi
js 0x51d42b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x51d43a
push eax
call dword [sym.imp.ntdll.dll_NtClose]
test bl, bl
je 0x51d446
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
Function at 0x51d7a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
push 0
push 0x40
push ecx
mov esi, edx
mov dword [ebp - 0x144], eax
push esi
push eax
mov ecx, ebx
mov dword [ebp - 0x14c], ebx
mov dword [edi], esi
call dword [0x55890c]
call ebx
test eax, eax
jns 0x51d803
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
mov eax, 0x5a4d
cmp word [ebp - 0x48], ax
je 0x51d82b
mov eax, 0xc000012f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x51d96f
jmp 0x51d840
cmp eax, 0x10000000
jae 0x51d96f
push 0
push 0xf8
lea ecx, [ebp - 0x140]
add eax, esi
push ecx
push eax
push dword [ebp - 0x144]
mov ecx, ebx
mov dword [ebp - 0x148], eax
lfence
call dword [0x55890c]
call ebx
test eax, eax
js 0x51d7ec
cmp dword [ebp - 0x140], 0x4550
jne 0x51d96f
mov ax, word ds:[ebp - 0x128]
mov ecx, 0x10b
mov word [edi + 0x10], ax
cmp ax, cx
je 0x51d8b3
mov ecx, 0x20b
cmp ax, cx
jne 0x51d96f
movzx eax, word [ebp - 0x13a]
mov dword [edi + 8], eax
lea ebx, [eax + eax*4]
movzx eax, word [ebp - 0x12c]
lea ebx, [ebx + 3]
lea ebx, [eax + ebx*8]
cmp ebx, 0x100000
ja 0x51d96f
push ebx
push 4
lfence
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
mov esi, eax
push 0
push esi
call fcn.00536b00
add esp, 0xc
push 0
push ebx
mov ebx, dword [ebp - 0x14c]
mov ecx, ebx
push esi
push dword [ebp - 0x148]
push dword [ebp - 0x144]
call dword [0x55890c]
call ebx
mov ebx, eax
test ebx, ebx
jns 0x51d94b
push esi
push 0
lfence
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 4], esi
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, esi
mov dword [edi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
mov ecx, dword ds:[ebp - 4]
mov eax, 0xc000007b
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
Function at 0x51fdc0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x10
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor eax, eax
cmp dword [0x5c7aa8], 0x3f
push eax
push eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push eax
mov dword [esi + 0xc], eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x51fe23
push esi
push eax
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x5c7aa8], 0x3f
lea ecx, [ebp - 4]
push 4
push ecx
push 0x54
push eax
jae 0x51fe54
mov dword ds:[ebp - 4], 0xa00
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword ds:[ebp - 4], 0x2a00
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 3
push eax
push 0x76
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x5c7aa8], 0x64
jb 0x51fea6
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x85
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x51ffa0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, ecx
and edx, 1
shl edx, 0x17
push esi
mov esi, dword [ebp + 8]
mov eax, edx
or eax, 0x100
and cl, 2
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
pop esi
test eax, eax
jne 0x51ffe6
xor al, al
mov esp, ebp
pop ebp
ret 0x10
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 8
push ecx
push 0x3f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5201c0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0xffff
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x5201fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x52024e
push esi
mov esi, dword [ebp - 4]
push dword [0x5cd4f8]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor eax, eax
push eax
lea ecx, [edi + 8]
mov dword [edi + 4], ecx
mov dword [edi], esi
mov word [ecx + esi], ax
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
push 0xffff
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
pop esi
test eax, eax
jne 0x520258
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x52024e
call fcn.004c1f60
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword ds:[edi + 4]
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [edi], eax
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x520280
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
and al, 1
mov dword [ebp - 4], 0
movzx ecx, al
lea eax, [ebp - 8]
push 0
push eax
neg ecx
mov dword [ebp - 8], 4
lea eax, [ebp - 4]
push eax
sbb ecx, ecx
and ecx, 5
mov eax, ecx
or eax, 0x13
and dl, 2
push 0
cmove eax, ecx
or eax, 0x20000000
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x5202e3
mov ecx, dword ds:[ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x520400
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.005552a0
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, 0x1000
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp + 0xc]
push ebx
push 4
push dword [0x5cd55c]
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1014], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x1008]
push eax
push ebx
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x5204fc
mov ecx, dword [ebp - 0x1008]
test ecx, ecx
je 0x5204db
lea eax, ds:[ecx + esi]
cmp ebx, eax
jae 0x52049e
add ebx, ebx
push ebx
push edi
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [ebp - 0x1008]
mov edi, eax
push ecx
lea eax, [ebp - 0x1004]
push eax
lea eax, [esi + edi]
push eax
call fcn.00537fe0
add esi, dword [ebp - 0x1008]
lea eax, [ebp - 0x1008]
add esp, 0xc
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x520470
lea eax, ds:[esi + 1]
cmp ebx, eax
jae 0x5204fc
lea eax, [ebx + 1]
push eax
push edi
push 4
lfence
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
mov byte [esi + edi], 0
test esi, esi
je 0x52054b
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x520512
mov dword [eax], edi
jmp 0x520526
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x520532
mov dword [eax], esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
Function at 0x520920
Capabilities:
Initialize winhttp library
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
test byte [0x5cbf8c], 1
push ebx
push edi
mov edi, ecx
mov ebx, str.1.1.1.1
jne 0x520a9d
push esi
mov esi, 0x5cbf8c
lock bts dword [esi], 0x1f
jae 0x520965
test byte [0x5cbf8c], 1
jne 0x520a9c
xor edx, edx
mov ecx, esi
call sym.ProcessHacker.exe_PhfWaitForEvent
nop
jmp 0x520a9c
cmp dword [0x5c7aa8], 0x3f
push 0
sbb eax, eax
push 0
and eax, 0xfffffffc
push 0
add eax, 4
push eax
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [0x5cf810], eax
test eax, eax
je 0x520a51
cmp dword [0x5c7aa8], 0x3f
push 4
jae 0x5209ae
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xa00
push ecx
push 0x54
push eax
jmp 0x520a07
lea ecx, ds:[ebp - 8]
mov dword [ebp - 8], 0x2a00
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 3
push eax
push 0x76
push dword [0x5cf810]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x5c7aa8], 0x64
jb 0x520a0d
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x85
push dword [0x5cf810]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x49
push dword [0x5cf810]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x5c7aa8], 0x64
jb 0x520a51
push 0
test edi, edi
mov eax, ebx
push 0x1bb
cmovne eax, edi
push eax
push dword [0x5cf810]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [0x5cf808], eax
lock bts dword [esi], 0
jb 0x520a9c
mov esi, dword [0x5cbf90]
mov edi, edi
test esi, esi
je 0x520a6d
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x5cbf8c
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x520a9c
test esi, esi
je 0x520a9c
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5cbf90], 0
pop esi
cmp dword [0x5c7aa8], 0x64
jae 0x520aca
push 0
test edi, edi
push 0x1bb
cmovne ebx, edi
push ebx
push dword [0x5cf810]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
pop edi
mov dword [0x5cf808], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5cf808]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x525b80
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ecx + 0x30]
mov eax, 0x38
push esi
push edi
mov esi, ebx
mov dword [ebp - 0x54], edx
and esi, 0x3f
mov dword [ebp - 0x50], ecx
sub eax, esi
mov edi, 0x78
sub edi, esi
cmp esi, 0x38
cmovb edi, eax
lea eax, [edi - 1]
push eax
lea eax, [ebp - 0x4b]
push 0
push eax
call fcn.00536b00
mov esi, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
mov eax, ebx
mov byte [ebp - 0x4c], 0x80
shr eax, 0x1d
add esp, 0xc
mov ecx, dword [esi + 0x2c]
shl ecx, 3
or ecx, eax
lea eax, [ebx*8]
bswap eax
bswap ecx
mov dword [ebp + edi - 0x48], eax
lea eax, [edi + 8]
mov dword [ebp + edi - 0x4c], ecx
mov ecx, esi
push eax
call fcn.00525ac0
mov ecx, dword [esi + 0x18]
mov edx, ecx
mov ebx, dword [ebp - 0x54]
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx], edx
mov ecx, dword [esi + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 8], edx
mov ecx, dword [esi + 0x24]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 0x28]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 4]
shl eax, 8
xor ecx, ebp
or edx, eax
mov dword [ebx + 0x10], edx
pop edi
mov dword [esi + 0x18], 0x67452301
mov dword [esi + 0x1c], 0xefcdab89
mov dword [esi + 0x20], 0x98badcfe
mov dword [esi + 0x24], 0x10325476
mov dword [esi + 0x28], 0xc3d2e1f0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop esi
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret
Function at 0x5269a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0
push 0
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov esi, eax
test esi, esi
js 0x526aed
push 0
push 0
push 0x60
push 1
push 5
push 0x80
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x38], eax
lea eax, [esp + 0x48]
push 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0
push eax
push 0x120089
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], 0x40
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov esi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop
test esi, esi
js 0x526aed
mov edi, dword ds:[esp + 0xc]
lea eax, [esp + 0x40]
push 5
push 0x18
push eax
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x526a97
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
jne 0x526a97
push edi
lfence
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
push ecx
mov edx, edi
call fcn.0052e7e0
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x526ad4
cmp dword [esi], 0
jne 0x526acd
test ebx, ebx
je 0x526ab7
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0052e2c0
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
mov ecx, dword ds:[esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
lfence
call fcn.00534c91
mov esp, ebp
pop ebp
ret 8
Function at 0x52e840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2020
call fcn.005552a0
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x201c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
lea edx, [esp + 0x14]
push 0x5cc000
mov dword [esp + 0x10], edx
lea edx, [esp + 0x2018]
push fcn.0052efc0
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x14]
push eax
call fcn.00530980
test eax, eax
js 0x52e913
jle 0x52e8a9
lea eax, ds:[esp + 8]
push eax
push 0xa
call fcn.0052efc0
test eax, eax
js 0x52e913
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
cmp eax, ecx
jne 0x52e8cd
xor ecx, ecx
mov eax, ecx
mov ecx, dword [esp + 0x201c]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4
push 0
push 0
lea ecx, [esp + 0x10]
sub eax, ecx
sub eax, 0xc
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtWriteFile]
xor ecx, ecx
test eax, eax
setns cl
dec ecx
mov eax, ecx
mov ecx, dword [esp + 0x201c]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4
mov ecx, dword ds:[esp + 0x201c]
or eax, 0xffffffff
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4
Function at 0x52efc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x52f000
lea edi, [esi + 0xc]
cmp ecx, edi
je 0x52f000
push 0
push 0
sub ecx, esi
lea eax, [ebp - 8]
sub ecx, 0xc
push ecx
push edi
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x52f012
mov dword [esi + 4], edi
mov ecx, edi
mov al, byte [ebp + 8]
mov byte [ecx], al
inc dword [esi + 4]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x52f020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
je 0x52f06b
push 0
push 0
push 0x2000
lea edi, [esi + 0xc]
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x52f06b
mov eax, dword [ebp - 4]
test eax, eax
je 0x52f06b
add eax, 0xc
mov dword [esi + 4], edi
add eax, esi
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x52f080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
je 0x52f0c4
mov eax, dword [esi + 4]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x52f0bc
push 0
push 0
sub eax, esi
sub eax, 0xc
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x52f0c4
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x544258
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5cc960]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x544298
cmp byte [ebx], 0xa
jne 0x544298
or byte [eax + edi + 0x28], 4
jmp 0x54429d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x54439b
mov al, byte [edx]
cmp al, 0x1a
je 0x54437d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5442cc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5442f1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5442fb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5442ae
jmp 0x54439b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x544378
cmp dword [ebp - 0xc], 0
je 0x544378
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5cc960]
test byte [eax + edi + 0x28], 0x48
je 0x544352
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x54433d
mov byte [esi], dl
jmp 0x54434e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5cc960]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x54439b
cmp byte [ebp - 1], 0xa
jne 0x544361
cmp esi, ebx
jne 0x544361
mov byte [esi], 0xa
jmp 0x54439a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0054eae2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x54439b
mov byte [esi], 0xd
jmp 0x54439a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5cc960]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x544397
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x54439b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret