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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0x4b5ad0
push 0
push eax
push 0x4b5920
push 0x769900
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4b5bb8
mov esi, dword [ebp + 0xc]
cmp dword [0x769904], 0
jne 0x4b5bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x769908]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x4b5b7b
push 0x14
push 1
call fcn.00495720
add esp, 8
test eax, eax
je 0x4b5bc6
mov edi, eax
push eax
push dword [0x769908]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4b5bbd
mov ebx, dword [ebp + 8]
mov esi, 0x76990c
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebp + 0x10]
mov dword [ebx*4 + 0x769910], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0056410f
push edi
call fcn.00495590
add esp, 4
mov ecx, dword [ebp + 0x10]
call dword [0x74e248]
push esi
call ecx
add esp, 4
xor esi, esi
jmp 0x4b5ba4

Function at 0x4b76a0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edx, [ebp - 0x18]
mov dword [edx], eax
mov dword [edx + 4], eax
push 6
push edx
push ecx
call fcn.0050f380
add esp, 0xc
xor esi, esi
test eax, eax
je 0x4b76fd
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
movzx eax, byte [0x6eedfd]
cmp ebx, eax
jne 0x4b7711
mov esi, 0x6eedf0
test al, al
je 0x4b76fd
push ebx
push 0x6eedf4
push edi
call fcn.00551eed
add esp, 0xc
test eax, eax
jne 0x4b7711
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x6eef25]
cmp ebx, eax
jne 0x4b7738
mov esi, 0x6eef18
test al, al
je 0x4b76fd
push ebx
push 0x6eef1c
push edi
call fcn.00551eed
add esp, 0xc
test eax, eax
je 0x4b76fd
movzx eax, byte [0x6eee91]
cmp ebx, eax
jne 0x4b775f
mov esi, 0x6eee84
test al, al
je 0x4b76fd
push ebx
push 0x6eee88
push edi
call fcn.00551eed
add esp, 0xc
test eax, eax
je 0x4b76fd
movzx eax, byte [0x6ef051]
cmp ebx, eax
jne 0x4b7793
mov esi, 0x6ef044
test al, al
je 0x4b76fd
push ebx
push 0x6ef048
push edi
call fcn.00551eed
add esp, 0xc
test eax, eax
je 0x4b76fd
jmp 0x4b7793
xor esi, esi
jmp 0x4b76fd
movzx eax, byte [0x6eefb9]
cmp ebx, eax
jne 0x4b778c
mov esi, 0x6eefac
test al, al
je 0x4b76fd
push ebx
push 0x6eefb0
push edi
call fcn.00551eed
add esp, 0xc
test eax, eax
je 0x4b76fd
jmp 0x4b778c
Function at 0x4bd0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x754040]
xor esi, ebp
mov dword [ebp - 8], esi
mov esi, SysReAllocString
cmp edx, 0x7fffffff
cmovb esi, edx
lea edx, [ebp - 0xc]
mov dword [edx], 0xffffffff
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bd12f
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x4bd12c
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
int3
xor esi, esi
dec esi
jmp 0x4bd11a

Function at 0x4bd140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x754040]
xor ecx, ebp
mov esi, SysReAllocString
cmp eax, 0x7fffffff
cmovb esi, eax
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xffffffff
push 0
push eax
push esi
push edx
mov edi, ebx
push ebx
mov esi, ecx
call ecx
test eax, eax
je 0x4bd1c3
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4bd1ad
cmp ebx, 0xffffffff
je 0x4bd1c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x4bd1d5
mov ebx, dword [ebp - 0x14]
jmp 0x4bd199
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x4bd199
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
mov esi, dword [ebp - 0x18]
jmp 0x4bd176

Function at 0x4bd620
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xa8
mov esi, dword [ebp + 8]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.004bd510
add esp, 0x10
or edx, eax
jne 0x4bd657
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
je 0x4bd66d
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
add esp, 0xa8
pop esi
pop ebx
pop ebp
ret
push 2
call fcn.005079c0
add esp, 4
test al, al
je 0x4bd6b7
call fcn.005ccb70
lea esi, [ebp - 0xb0]
mov ecx, esi
push eax
push 2
push 0xfc
push 0x6ecd10
call fcn.005ccd20
lea eax, [ebp - 0xa8]
push 0xc
push 0x6ecd5e
push eax
call fcn.004e58e0
add esp, 0xc
mov ecx, esi
call fcn.005ccd80
xor ebx, ebx
jmp 0x4bd657
Function at 0x4c05c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
cmp edx, 8
ja case.default.0x4c05d1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
jmp dword [edx*4 + 0x6ee7e4]
mov edx, 0x40
jmp case.0x4c05d1.2
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4c060a
mov edx, 4
jmp case.0x4c05d1.2
mov edx, 0x20
push edx
push 0x1000
push ecx
push eax
call fcn.004bfef0
add esp, 0x10
test eax, eax
setne al
pop ebp
ret
int3

Function at 0x4c0ae0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp byte [edx + 0xb], 0
jns 0x4c0af9
mov edx, dword [edx]
mov ebx, eax
and ebx, 0xfffffff
test al, 4
je 0x4c0b11
cmp byte [esi + 0x28], 1
je 0x4c0b82
or ebx, 0x20000000
test bl, 8
jne 0x4c0b8a
mov dword [ebp - 0x10], 0
cmp byte [esi + 0x30], 0
mov eax, 0
je 0x4c0b2b
mov eax, dword [esi + 0x2c]
cmp byte [esi + 0x24], 0
mov edi, 0
je 0x4c0b39
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
cmp byte [esi + 0x1c], 1
je 0x4c0bdc
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp byte [esi + 0xc], 1
je 0x4c0bf2
test ecx, ecx
jne 0x4c0baf
xor ecx, ecx
inc ecx
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x10]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x4c0ba6
test esi, esi
sete al
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
or ebx, 0x80000000
jmp 0x4c0b11
cmp byte [esi + 0x34], 1
jne 0x4c0b9b
or ebx, 0x40000000
jmp 0x4c0b16
or ebx, 0x10000000
jmp 0x4c0b16
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4c0b73
cmp ecx, 4
jne 0x4c0bbb
mov ecx, 6
jmp 0x4c0b5c
mov esi, ecx
add ecx, 0xfffffffe
cmp ecx, 2
jae 0x4c0bcc
mov ecx, 7
jmp 0x4c0b5c
cmp esi, 1
jne 0x4c0bd8
mov ecx, 4
jmp 0x4c0b5c
xor ecx, ecx
jmp 0x4c0b5c
lea ecx, [esi + 0x10]
mov dword [ebp - 0x14], edx
call fcn.004866b0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x4c0b46
mov ecx, esi
mov esi, edx
call fcn.004866b0
mov ecx, dword [ebp + 0xc]
mov edx, esi
jmp 0x4c0b55
Function at 0x4c0c10
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, eax
and ebx, 0xfffffff
test al, 4
je 0x4c0c3a
cmp byte [esi + 0x28], 1
je 0x4c0cc0
or ebx, 0x20000000
test bl, 8
jne 0x4c0ccb
xor eax, eax
cmp byte [esi + 0x30], 0
mov ecx, 0
je 0x4c0c53
mov ecx, dword [esi + 0x2c]
cmp byte [esi + 0x24], 0
mov edi, 0
je 0x4c0c61
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x14], ecx
cmp byte [esi + 0x1c], 1
je 0x4c0ce7
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp byte [esi + 0xc], 1
je 0x4c0cfd
mov ecx, dword [ebp + 8]
cmp edx, 4
jne 0x4c0caf
mov edx, 6
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push eax
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x4c0cf4
test esi, esi
sete al
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov esi, edx
add edx, 0xfffffffe
cmp edx, 2
jae 0x4c0d0d
mov edx, 7
jmp 0x4c0c89
or ebx, 0x80000000
jmp 0x4c0c3a
cmp byte [esi + 0x34], 1
jne 0x4c0cdc
or ebx, 0x40000000
jmp 0x4c0c43
or ebx, 0x10000000
jmp 0x4c0c43
lea ecx, [esi + 0x10]
call fcn.004866b0
jmp 0x4c0c6a
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4c0ca0
mov ecx, esi
mov esi, edx
call fcn.004866b0
mov edx, esi
jmp 0x4c0c7c
test esi, esi
jne 0x4c0d19
xor edx, edx
inc edx
jmp 0x4c0c89
cmp esi, 1
jne 0x4c0d28
mov edx, 4
jmp 0x4c0c89
xor edx, edx
jmp 0x4c0c89

Function at 0x4c4910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4c4921
test eax, eax
jne 0x4c497a
test eax, eax
sete al
mov ecx, dword [0x76c320]
test ecx, ecx
setne dl
and dl, al
cmp dl, 1
jne 0x4c4940
call dword [0x74e248]
call ecx
cmp dword [0x76c318], 0
je 0x4c497a
mov esi, dword [0x76c31c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x4c4980
test esi, esi
je 0x4c497a
mov ecx, dword [0x76c318]
call dword [0x74e248]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4c4968
jmp 0x4c497a
Function at 0x4f1920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movdqu xmm4, xmmword [ecx]
movdqu xmm3, xmmword [ecx + 0x10]
movdqu xmm2, xmmword [ecx + 0x20]
movdqu xmm1, xmmword [ecx + 0x30]
movd xmm0, dword [ebp + 0x10]
pxor xmm0, xmm4
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x40
jb 0x4f19ee
movq xmm4, qword [0x6d6e00]
movdqa xmm5, xmmword [0x6d6e10]
nop word cs:[eax + eax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
movdqa xmm6, xmm3
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm6
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
movdqu xmm6, xmmword [ecx]
pxor xmm0, xmm6
movdqu xmm6, xmmword [ecx + 0x10]
pxor xmm3, xmm6
movdqu xmm6, xmmword [ecx + 0x20]
pxor xmm2, xmm6
movdqu xmm6, xmmword [ecx + 0x30]
pxor xmm1, xmm6
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x3f
ja 0x4f1970
movq xmm4, qword [0x6d6e20]
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x6d6e60]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp eax, 0x10
jb 0x4f1a73
movdqu xmm1, xmmword [ecx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add ecx, 0x10
add eax, 0xfffffff0
cmp eax, 0xf
ja 0x4f1a4c
pmovzxdq xmm1, qword [0x6d6e60]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm2, xmm2
pxor xmm1, xmm1
pblendw xmm1, xmm0, 3
psrldq xmm0, 4
pclmulqdq xmm1, xmmword [0x6d6e30], 0
pxor xmm1, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm1, 3
pclmulqdq xmm0, xmmword [0x6d6e40], 0x10
pblendw xmm0, xmm2, 0xfc
pclmulqdq xmm0, xmmword [0x6d6e50], 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
pop ebp
ret

Function at 0x4f2080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x4f20b5
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4f20bc
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4f20ae
mov dword [esi], ebx
call fcn.005080f0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005080f0
push dword [esi]
call fcn.004f9550
add esp, 4
mov dword [esi], 0
jmp 0x4f209f
Function at 0x4f9400
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x75aa30]
mov ecx, dword [0x758d88]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4f9450
mov esi, dword [0x75aa2c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x75aa30
call fcn.0054fc5d
add esp, 4
cmp dword [0x75aa30], 0xffffffff
jne 0x4f9433
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00553af0
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x58
call fcn.0054fbd9
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x75aa60]
mov ecx, dword [0x758d88]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4f94f9
mov ecx, esi
push ebx
push 0x75aa3c
push edi
call fcn.00481cf0
mov dword [0x75aa2c], esi
push 0x75aa30
call fcn.0054fcd7
add esp, 4
jmp 0x4f9433
push 0x75aa60
call fcn.0054fc5d
add esp, 4
cmp dword [0x75aa60], 0xffffffff
jne 0x4f94d3
xorps xmm0, xmm0
movups xmmword [0x75aa4c], xmm0
movups xmmword [0x75aa3c], xmm0
mov dword [0x75aa5c], 0
push 0x75aa3c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x75aa60
call fcn.0054fcd7
add esp, 4
jmp 0x4f94d3

Function at 0x4f9f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x4f9f7e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4f9f67
lea eax, [edi + 1]
cmp eax, 2
jb 0x4f9f4b
mov dword [esi], edi
call fcn.005080f0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x4f9f82
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.005080f0
push dword [esi]
call fcn.004f9550
add esp, 4
mov dword [esi], 0
jmp 0x4f9f3c
mov byte [esi + 4], 0
int3
Function at 0x4faa20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov eax, dword [0x754040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x42
push 0x6e09f8
push str.Read
push esi
call fcn.005080c0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004fdc20
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x4faaf2
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x4faaf2
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.00516850
test al, al
jne 0x4fab29
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push esi
push eax
push edi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fab12
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4fab24
lea ecx, [esp + 0x28]
call fcn.005168e0
lea ecx, [esp + 0x30]
call fcn.004fdc90
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4faae9
int3
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.0063f920
jmp 0x4faaa4

Function at 0x4fab50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x754040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x5f
push 0x6e09f8
push 0x6e0a47
push ebx
call fcn.005080c0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.004fdc20
test ebx, ebx
js 0x4fac11
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00516850
test al, al
jne 0x4fac2d
lea eax, [esp + 0xc]
mov dword [eax], 0xffffffff
push 0
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fac1b
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4fac16
lea ecx, [esp + 0x10]
call fcn.005168e0
lea ecx, [esp + 0x20]
call fcn.004fdc90
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x4fabf1
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4fabe8
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push 0x6e0a58
call fcn.0063f920
jmp 0x4fabc5
Function at 0x4fac50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov eax, dword [0x754040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea ebx, [esp + 0x10]
push 0x7f
push 0x6e09f8
push 0x6d8c95
push ebx
call fcn.005080c0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004fdc20
mov edi, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x4fad20
mov esi, dword [ebp + 0x14]
test esi, esi
js 0x4fad20
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.00516850
test al, al
jne 0x4fad47
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push esi
push dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4fad40
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.005168e0
lea ecx, [esp + 0x30]
call fcn.004fdc90
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00550b46
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov edi, 0xffffffff
jmp 0x4fad17
lea ecx, [esp + 0x28]
push 0
push esi
push dword [esp + 0x10]
push 0x6e0a6f
call fcn.0063f920
jmp 0x4facd4
Function at 0x508100
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051c950

Function at 0x508110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
js 0x50811f
pop ebp
jmp fcn.0051c870
call fcn.005cf110
xor eax, eax
pop ebp
ret

Function at 0x50ada0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004fa930
mov dword [esi], 0
test eax, eax
je 0x50ade7
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x50ae16
lea eax, [ebx + 1]
cmp eax, 2
jb 0x50addd
mov dword [esi], ebx
call fcn.005080f0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.005083c0
lea ecx, [esi + 0x10]
call fcn.00516880
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005080f0
push dword [esi]
call fcn.004f9550
add esp, 4
mov dword [esi], 0
jmp 0x50adce

Function at 0x50c670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x50c6a6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
nop word [eax + eax]
movzx eax, byte [ecx + esi]
xor al, byte [edx + esi]
or bl, al
inc esi
cmp edi, esi
jne 0x50c690
movzx eax, bl
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x50c6a1
Function at 0x50dd60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
test eax, eax
jle 0x50df27
mov edx, dword [edx + 0x118]
mov esi, eax
cmp dword [edx + esi*4 - 4], 0
je 0x50dee9
lea edi, [esi - 1]
shl edi, 5
mov esi, dword [edx + esi*4 - 4]
xor edx, edx
test esi, esi
setne dl
mov dword [ebp - 0x18], edx
mov edx, esi
shr edx, 0x10
cmp esi, 0x10000
cmovb edx, esi
mov ebx, 0
setae bl
shl ebx, 4
mov dword [ebp - 0x14], ebx
mov esi, edx
shr esi, 8
xor ebx, ebx
cmp edx, 0x100
cmovb esi, edx
setae bl
mov dword [ebp - 0x10], ebx
mov edx, esi
shr edx, 4
xor ebx, ebx
cmp esi, 0x10
cmovb edx, esi
setae bl
mov dword [ebp - 0x1c], ebx
mov esi, edx
shr esi, 2
xor ebx, ebx
cmp edx, 4
cmovb esi, edx
setae bl
mov edx, dword [ebp - 0x18]
or edx, edi
add edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
lea edx, [edx + edi*8]
mov edi, dword [ebp - 0x1c]
lea edx, [edx + edi*4]
lea edx, [edx + ebx*2]
cmp esi, 2
sbb edx, 0xffffffff
add edx, 7
shr edx, 3
cmp edx, ecx
jne 0x50defe
lea edx, [eax*4]
cmp edx, ecx
jb 0x50df22
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp ecx, 4
jb 0x50de52
mov esi, dword [edi + ecx - 4]
add ecx, 0xfffffffc
bswap esi
mov dword [edx], esi
add edx, 4
dec eax
cmp ecx, 3
ja 0x50de3e
test ecx, ecx
je 0x50de73
xor esi, esi
xor edi, edi
mov ebx, edi
shl ebx, 8
mov edi, dword [ebp + 0x10]
movzx edi, byte [edi + esi]
or edi, ebx
inc esi
cmp ecx, esi
jne 0x50de5a
mov dword [edx], edi
add edx, 4
dec eax
shl eax, 2
test eax, eax
jne 0x50df36
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
mov dword [ebp - 0x10], 0x14b
test ecx, ecx
je 0x50df05
mov eax, dword [eax + 0x118]
mov dword [ebp - 0x14], eax
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + ebx*4]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + ebx*4]
mov ecx, esi
xor ecx, edi
mov eax, esi
sub eax, edi
lea edi, [ecx - 1]
xor eax, esi
or eax, ecx
not ecx
and edi, ecx
mov ecx, dword [ebp - 0x18]
xor eax, esi
sar edi, 0x1f
sar eax, 0x1f
or eax, 1
xor edx, eax
and edx, edi
xor edx, eax
inc ebx
cmp ecx, ebx
jne 0x50dea2
test edx, edx
jns 0x50df05
xor eax, eax
inc eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esi - 1]
cmp esi, 1
mov esi, edi
jg 0x50dd85
xor edx, edx
jmp 0x50de1c
mov dword [ebp - 0x10], 0x144
push dword [ebp - 0x10]
push 0x6e23b9
push 0x80
push 0
push 0xf
call fcn.00643740
add esp, 0x14
xor eax, eax
jmp 0x50dee1
call fcn.0056410f
je 0x50def7
mov edx, dword [edx + 0x118]
mov esi, eax
jmp 0x50dd90
push eax
push 0
push edx
call fcn.00553af0
add esp, 0xc
jmp 0x50de7e