joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccc80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x4cccc4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x4cccca
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4ccd06
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x4ccd28
test eax, eax
js 0x4ccd12
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x4ccd1b
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x57ecfc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.004cc340
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004cc470
mov ecx, 7
int 0x29
ud2
Function at 0x4d3890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4d38da
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x4d38ea
mov dword [esi + 4], 0
jmp 0x4d38fb
cmp eax, 0x103
je 0x4d3914
test eax, eax
js 0x4d3905
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4d38fe
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x57ecfc
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
push ecx
push edx
call fcn.004cc340
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.004cc470
mov ecx, 7
int 0x29
ud2
Function at 0x4d4e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x504130
mov eax, edx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x18]
mov ebx, 0x104
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
lea ecx, [eax + 0x230]
mov dword [ebp - 0x24], edx
lea edx, [eax + 0x30]
mov edi, edx
cmp word [edi], 0
je 0x4d4f0f
cmp word [edi + 2], 0
je 0x4d4eee
cmp word [edi + 4], 0
je 0x4d4ef3
cmp word [edi + 6], 0
je 0x4d4ef8
cmp word [edi + 8], 0
je 0x4d4efd
cmp word [edi + 0xa], 0
je 0x4d4f02
cmp word [edi + 0xc], 0
je 0x4d4f07
cmp word [edi + 0xe], 0
je 0x4d4f0c
add ebx, 0xfffffff8
add edi, 0x10
cmp ebx, 7
ja 0x4d4e6e
cmp word [ecx], 0
je 0x4d4f11
cmp word [eax + 0x232], 0
je 0x4d4fdc
cmp word [eax + 0x234], 0
je 0x4d4fe8
cmp word [eax + 0x236], 0
mov edi, 0x104
jne 0x4d4f2a
add eax, 0x236
mov ecx, eax
jmp 0x4d4f11
add edi, 2
jmp 0x4d4f0f
add edi, 4
jmp 0x4d4f0f
add edi, 6
jmp 0x4d4f0f
add edi, 8
jmp 0x4d4f0f
add edi, 0xa
jmp 0x4d4f0f
add edi, 0xc
jmp 0x4d4f0f
add edi, 0xe
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x10], 0xffffffff
mov edi, ecx
shr edi, 1
cmp ecx, 0x20a
jae 0x4d4ff4
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x48]
push edi
call fcn.004cfbe0
add esp, 4
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
test esi, esi
mov dword [ebp - 0x20], eax
je 0x4d4f6c
js 0x4d5005
movzx eax, byte [0x5c3018]
xor ecx, ecx
mov edx, esi
call fcn.004e33d0
test eax, eax
je 0x4d5009
mov edi, eax
jmp 0x4d4f71
mov edi, 1
mov eax, dword [ebp - 0x24]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x34]
push ebx
call fcn.004d5060
add esp, 4
cmp dword [ebp - 0x48], 0
movsd xmm0, qword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x2c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
je 0x4d4fcb
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.004332a0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
add eax, 0x232
mov ecx, eax
jmp 0x4d4f11
add eax, 0x234
mov ecx, eax
jmp 0x4d4f11
mov ecx, edi
mov edx, 0x104
push 0x57f474
call fcn.00526980
xor ecx, ecx
jmp 0x4d500e
mov ecx, 1
mov edx, esi
mov dword [ebp - 0x10], 0
call fcn.00526660
ud2
Function at 0x4d5d80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.004d1b70
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x4d5dd4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.004d3ad0
add esp, 4
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x4d5de1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x4d5dfa
mov byte [esi], 4
test ebx, ebx
jne 0x4d5e0a
jmp 0x4d5dd9
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4d5dd9
mov ecx, edi
mov edx, 2
call fcn.004332a0
jmp 0x4d5dd9
Function at 0x4d82e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b0
movzx eax, word [edx + 8]
mov edi, dword [edx]
mov ebx, dword [edx + 4]
mov esi, ecx
mov word [ebp - 0xe], ax
mov eax, dword [0x5c2f9c]
cmp eax, 3
jne 0x4d849c
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x1c], eax
ja 0x4d84a6
lea eax, [ebp - 0x1bc]
push ebx
push edi
mov edi, eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebx + 1]
cmp ebx, 6
mov byte [ebp + ebx - 0x1bc], 0
ja 0x4d8358
xor edx, edx
cmp byte [ebp + edx - 0x1bc], 0
je 0x4d840f
inc edx
cmp eax, edx
jne 0x4d8340
jmp 0x4d8463
lea ecx, [ebp - 0x1b9]
and ecx, 0xfffffffc
sub ecx, edi
je 0x4d838f
xor edx, edx
nop word [eax + eax]
cmp byte [ebp + edx - 0x1bc], 0
je 0x4d840f
inc edx
cmp ecx, edx
jne 0x4d8370
lea edx, [ebx - 7]
mov dword [ebp - 0x14], esi
cmp ecx, edx
jbe 0x4d8395
jmp 0x4d83e1
lea edx, [ebx - 7]
mov dword [ebp - 0x14], esi
movdqa xmm0, xmmword [0x52a3c0]
movdqa xmm1, xmmword [0x52a3d0]
nop word cs:[eax + eax]
nop
movq xmm2, qword [ebp + ecx - 0x1bc]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd esi, xmm2
or esi, edi
jne 0x4d83e1
add ecx, 8
cmp ecx, edx
jbe 0x4d83b0
mov esi, dword [ebp - 0x14]
sub eax, ecx
je 0x4d8463
lea edi, [ebp + ecx - 0x1bc]
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x4d840d
inc edx
cmp eax, edx
jne 0x4d8400
jmp 0x4d8463
add edx, ecx
cmp edx, ebx
jne 0x4d8463
pxor xmm0, xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x3c]
movdqu xmmword [ebp - 0x3c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x34], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4d8485
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x4d847a
mov eax, dword [0x57e2f0]
mov ecx, dword [0x57e2f4]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
add esp, 0x1b0
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x4d847a
call fcn.00528ca0
jmp 0x4d8309
lea eax, [ebp - 0x1c]
mov ecx, esi
mov edx, edi
push eax
push ebx
call fcn.00528cf0
add esp, 8
jmp 0x4d847a
Function at 0x4de0e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.004d1b70
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp edx, 0x80000000
jne 0x4de119
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x80000000
jmp 0x4de138
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.004de010
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x4de14e
lea ecx, [ebp - 0x18]
call fcn.004d1d10
mov dword [esi], 0x80000000
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4de170
mov eax, dword [ebp - 0x1c]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
jmp 0x4de146
test ebx, ebx
mov dword [esi], 0x80000000
je 0x4de146
mov ecx, edi
mov edx, 2
call fcn.004332a0
jmp 0x4de146
Function at 0x4e0d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x504310
mov esi, edx
mov edi, ecx
xor ecx, ecx
mov edx, 8
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x5c3018]
call fcn.004e33d0
test eax, eax
je 0x4e0e09
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4e0ec0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x4e0daa
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4e0df8
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4e0ddf
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.004332a0
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.004332a0
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00526680
ud2
Function at 0x4e12e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.005251d0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x504340
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea edi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4d8fa0
push eax
push 0x1000
push edi
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4e1433
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e136a
cmp dword [ebp - 0x2c], 0
jne 0x4e1439
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4e1439
cmp esi, 0x1000
ja 0x4e1477
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4e145d
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4d8fa0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4e1433
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e13e0
cmp dword [ebp - 0x2c], 0
jne 0x4e1439
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4e13a0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4d8fa0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4e136a
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x57eed0
call fcn.00526b90
add esp, 4
jmp 0x4e1492
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x57eed0
call fcn.00526980
add esp, 4
ud2
Function at 0x4e26b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x504390
mov esi, ecx
lea eax, [ebp - 0x18]
mov ebx, edx
mov edx, 0x1ec
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
xor ecx, ecx
movzx eax, byte [0x5c3018]
call fcn.004e33d0
test eax, eax
je 0x4e2853
mov dword [eax + 0xb0], 0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
mov edi, dword [ebx]
mov esi, dword [ebx + 8]
movzx ecx, word [edi + 0x1ea]
mov ebx, esi
not ebx
add ebx, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [esi + esi*8]
lea ecx, [ecx + ecx*2]
mov word [eax + 0x1ea], bx
add ecx, esi
mov edx, dword [edi + ecx + 0xcc]
mov dword [ebp - 0x40], edx
movsd xmm0, qword [edi + ecx + 0xc4]
movsd qword [ebp - 0x48], xmm0
movsd xmm0, qword [edi + ecx + 0xb4]
movsd xmm1, qword [edi + ecx + 0xbc]
mov ecx, esi
shl ecx, 4
cmp ebx, 0xb
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
mov eax, dword [edi + ecx]
mov edx, dword [edi + ecx + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
ja 0x4e2862
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, ebx
jne 0x4e287f
mov edx, dword [edi + ecx + 0xc]
mov ecx, dword [edi + ecx + 8]
lea eax, [edi + 0xb4]
add eax, esi
mov dword [ebp - 0x30], edx
lea edx, [esi + esi*8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x24]
lea edx, [edx + edx*2]
add eax, edx
lea edx, [ebx + ebx*8]
lea edx, [edx + edx*2]
add edx, ebx
add ecx, 0xb4
push edx
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
shl esi, 4
shl ebx, 4
add esi, edi
push ebx
push esi
mov esi, dword [ebp - 0x24]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov word [edi + 0x1ea], ax
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x38]
movsd qword [ecx], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ecx + 8], xmm1
movsd qword [ecx + 0x10], xmm0
mov dword [ecx + 0x2c], edi
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0x2c]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edx
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x34], esi
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 0x1ec
call fcn.00526680
mov dword [ebp - 0x10], 0
mov ecx, ebx
mov edx, 0xb
push 0x57d394
call fcn.00526980
add esp, 4
jmp 0x4e289d
mov dword [ebp - 0x10], 0
mov ecx, str.assertion_failed:_src.len____dst.len__4
mov edx, 0x28
push 0x57d384
call fcn.00526990
add esp, 4
ud2
Function at 0x4e69a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x5044c0
movaps xmm0, xmmword [0x52a6a0]
mov edi, ecx
lea ebx, [esi + 0x20]
lea ecx, [esi + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x20], xmm0
push ebx
push eax
call fcn.004d3420
add esp, 8
movzx eax, byte [esi + 0xc]
cmp al, 4
jne 0x4e6a59
mov eax, ebx
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
movsd qword [esi + 0x40], xmm0
xorps xmm0, xmm0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
push 0x28
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x4e6a75
test byte [esi + 0x40], 0x10
jne 0x4e6a8a
mov byte [edi], 0
mov eax, 0x10b
jmp 0x4e6a81
movzx ecx, byte [esi + 0xf]
movzx ebx, word [esi + 0xd]
mov edx, dword [esi + 0x10]
mov byte [edi + 3], cl
mov word [edi + 1], bx
mov byte [edi], al
mov dword [edi + 4], edx
jmp 0x4e6b17
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], 0
mov dword [edi + 4], eax
push ebx
jmp 0x4e6b11
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 8]
push 0x4e6b90
call fcn.004e6bd0
add esp, 4
cmp byte [esi + 0x14], 4
mov ecx, dword [esi + 0x1c]
jne 0x4e6abe
movsd xmm0, qword [esi + 0x14]
movsd qword [ecx], xmm0
jmp 0x4e6b0e
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
je 0x4e6ad5
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4e6b0e
cmp edx, 1
je 0x4e6ae4
cmp edx, 0x57
je 0x4e6ae4
cmp edx, 0x32
jne 0x4e6ace
mov dword [esi + 0x58], 2
lea edx, [esi + 8]
push 0x4e73f0
call fcn.004e6bd0
add esp, 4
lea eax, [esi + 0x20]
mov dword [esi + 0x58], 1
push eax
call fcn.004cc520
add esp, 4
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e76f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5044e0
mov edi, ecx
mov esi, edx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4e774e
js 0x4e77bd
movzx eax, byte [0x5c3018]
xor ecx, ecx
mov edx, ebx
call fcn.004e33d0
test eax, eax
jne 0x4e7753
mov ecx, 1
mov edx, ebx
call fcn.00526660
mov eax, 1
push ebx
push esi
mov dword [ebp - 0x20], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, dword [edi + 0x30]
cmp ebx, dword [edi + 0x28]
jne 0x4e7784
lea ecx, [edi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
call fcn.004e77f0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
lea ecx, [ebx + ebx*4]
inc ebx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov byte [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x30], ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00420080
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 8], 0
je 0x4e77ea
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.004332a0
add esp, 0xc
pop ebp
ret

Function at 0x4ea9cb
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
lea eax, [esi + 0x38]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504750
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004eaafb
pop eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
mov dword [esi + 0x18], eax
add ecx, 8
mov eax, dword [esi + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x40], 1
mov dword [esi + 8], ecx
mov dword [esi + 0x14], eax
call fcn.004eab44
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
movsd xmm0, qword [eax + 0x10]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
and dword [esi + 0x40], 0
mov ecx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x18]
push dword [esi + 0x1c]
call fcn.004eab7c
pop eax
pop ecx
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f06ea
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x4f06ec
test al, 1
je 0x4f0703
test al, 2
jne 0x4f0715
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x581e7c
call fcn.00526990
push 0x25
pop edx
mov ecx, 0x581e8c
push 0x581eb4
call fcn.00526990