joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c120
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 0x48c137
test eax, eax
je 0x48c137
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x48c145
mov ecx, dword [0x5d5978]
test ecx, ecx
jne 0x48c181
cmp dword [0x5d5970], 0
je 0x48c131
mov esi, dword [0x5d5974]
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 0x48c18b
test esi, esi
je 0x48c131
mov ecx, dword [0x5d5970]
call dword [0x5bb424]
push esi
call ecx
add esp, 4
jmp 0x48c131
call dword [0x5bb424]
call ecx
jmp 0x48c145
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x48c169
Function at 0x491710
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 [0x5c1040]
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 0x49176f
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x49176c
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f1eb0
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
int3
xor esi, esi
dec esi
jmp 0x49175a

Function at 0x491780
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 [0x5c1040]
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 0x491803
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4917ed
cmp ebx, 0xffffffff
je 0x491800
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1eb0
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 0x491815
mov ebx, dword [ebp - 0x14]
jmp 0x4917d9
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x4917d9
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
mov esi, dword [ebp - 0x18]
jmp 0x4917b6

Function at 0x491c70
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.00491b60
add esp, 0x10
or edx, eax
jne 0x491ca7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
je 0x491cbd
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f1eb0
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
push 2
call fcn.004bb790
add esp, 4
test al, al
je 0x491d07
call fcn.0053eb80
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfc
push str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
call fcn.0053ed50
lea eax, [ebp - 0xac]
push 0xc
push 0x5b259a
push eax
call fcn.00499a00
add esp, 0xc
mov ecx, esi
call fcn.0053edb0
xor ebx, ebx
jmp 0x491ca7
Function at 0x495cb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5d6e8c]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x495d1a
mov ecx, 0x5d6e84
call fcn.0047e4f0
test eax, eax
jne 0x495d0d
push 4
call fcn.004f190e
add esp, 4
mov edi, eax
mov dword [eax], 0
mov ecx, 0x5d6e84
call fcn.0047e4f0
mov esi, eax
mov ecx, 0x5d6e84
push edi
call fcn.0047e590
test esi, esi
jne 0x495d5d
mov ecx, 0x5d6e84
pop esi
pop edi
pop ebp
jmp fcn.0047e4f0
push 0x5d6e8c
call fcn.004f1981
add esp, 4
cmp dword [0x5d6e8c], 0xffffffff
jne 0x495cd2
xor eax, eax
mov dword [0x5d6e88], eax
mov dword [0x5d6e84], eax
mov ecx, 0x5d6e84
push 0x4131a0
call fcn.0047e5d0
push 0x5d6e8c
call fcn.004f19fb
add esp, 4
jmp 0x495cd2
push esi
call fcn.004f193e
add esp, 4
jmp 0x495d0d

Function at 0x496490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x80
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [ecx + 0xb], 0
js 0x49652e
je 0x49651b
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x49651b
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call esi
sub esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f1eb0
add esp, 0x80
pop esi
pop ebp
ret
cmp dword [ecx + 4], 0
je 0x49651b
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x5c], 0x44
mov ecx, dword [ecx]
jmp 0x4964ce

Function at 0x496590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push ecx
push 0x496610
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x4965ce
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f1eb0
add esp, 0x18
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x20]
push 0x1b
push str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
push str.Start
push edi
call fcn.004bbec0
add esp, 0x10
lea esi, [ebp - 0x10]
push edi
push esi
call fcn.00541300
add esp, 8
mov ecx, esi
push 0x5ab840
call fcn.00523e80
mov ecx, esi
call fcn.005413a0
jmp 0x4965bd
Function at 0x4a3ea0
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
jae 0x4a3fc2
movq xmm4, qword [0x59e120]
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x59e160]
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 0x4a3f59
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 0x4a3f32
pmovzxdq xmm1, qword [0x59e160]
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 [0x59e130], 0
pxor xmm1, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm1, 3
pclmulqdq xmm0, xmmword [0x59e140], 0x10
pblendw xmm0, xmm2, 0xfc
pclmulqdq xmm0, xmmword [0x59e150], 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
pop ebp
ret
movq xmm4, qword [0x59e100]
movdqa xmm5, xmmword [0x59e110]
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 0x4a3fe0
jmp 0x4a3ed4
Function at 0x4a6030
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 0x4a6065
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4a606c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4a605e
mov dword [esi], ebx
call fcn.004bbef0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004bbef0
push dword [esi]
call fcn.004aaa80
add esp, 4
mov dword [esi], 0
jmp 0x4a604f

Function at 0x4aa7c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5c8628]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4aa80d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1eb0
mov eax, 0x5c8624
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5c8628
call fcn.004f1981
add esp, 4
cmp dword [0x5c8628], 0xffffffff
jne 0x4aa7f3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004f5920
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 0x54
call fcn.004f190e
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5c8658]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4aa8b6
mov ecx, esi
push ebx
push 0x5c8634
push edi
call fcn.0043be90
mov dword [0x5c8624], esi
push 0x5c8628
call fcn.004f19fb
add esp, 4
jmp 0x4aa7f3
push 0x5c8658
call fcn.004f1981
add esp, 4
cmp dword [0x5c8658], 0xffffffff
jne 0x4aa890
xorps xmm0, xmm0
movups xmmword [0x5c8644], xmm0
movups xmmword [0x5c8634], xmm0
mov dword [0x5c8654], 0
push 0x5c8634
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5c8658
call fcn.004f19fb
add esp, 4
jmp 0x4aa890
Function at 0x4aa910
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5c8628]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4aa960
mov esi, dword [0x5c8624]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1eb0
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5c8628
call fcn.004f1981
add esp, 4
cmp dword [0x5c8628], 0xffffffff
jne 0x4aa943
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004f5920
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 0x54
call fcn.004f190e
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5c8658]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4aaa09
mov ecx, esi
push ebx
push 0x5c8634
push edi
call fcn.0043be90
mov dword [0x5c8624], esi
push 0x5c8628
call fcn.004f19fb
add esp, 4
jmp 0x4aa943
push 0x5c8658
call fcn.004f1981
add esp, 4
cmp dword [0x5c8658], 0xffffffff
jne 0x4aa9e3
xorps xmm0, xmm0
movups xmmword [0x5c8644], xmm0
movups xmmword [0x5c8634], xmm0
mov dword [0x5c8654], 0
push 0x5c8634
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5c8658
call fcn.004f19fb
add esp, 4
jmp 0x4aa9e3

Function at 0x4ab720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx eax, byte [0x5c86fc]
test al, 1
je 0x4ab78c
call fcn.004c4860
pop esi
pop edi
pop ebp
jmp fcn.004c4880
push 0x5c8704
call fcn.004f1981
add esp, 4
cmp dword [0x5c8704], 0xffffffff
jne 0x4ab7a9
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4ab7c4
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ab7c7
mov dword [0x5c8700], eax
push 0x5c8704
call fcn.004f19fb
add esp, 4
jmp 0x4ab7a9
mov eax, dword [0x5c8704]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4ab743
mov ecx, dword [0x5c8700]
call dword [0x5bb424]
push edi
push esi
call ecx
test eax, eax
je 0x4ab7c1
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x4ae7d0
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 [0x5c1040]
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 str....._base_files_file_win.cc
push str.Read
push esi
call fcn.004bbec0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004b1470
xor ebx, ebx
dec ebx
cmp dword [ebp + 0xc], 0
js 0x4ae8a2
mov edi, dword [ebp + 0x14]
test edi, edi
js 0x4ae8a2
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004c7050
test al, al
jne 0x4ae8d9
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 0x4ae8c2
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4ae8d4
lea ecx, [esp + 0x28]
call fcn.004c70f0
lea ecx, [esp + 0x30]
call fcn.004b14e0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004f1eb0
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 0x4ae899
int3
lea ecx, [esp + 0x28]
push 0
push edi
push dword [esp + 0x10]
push str.File::Read
call fcn.00547050
jmp 0x4ae854

Function at 0x4ae900
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 [0x5c1040]
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 str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.004bbec0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.004b1470
test ebx, ebx
js 0x4ae9c1
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004c7050
test al, al
jne 0x4ae9dd
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 0x4ae9cb
mov ebx, dword [esp + 0xc]
test ebx, ebx
js 0x4ae9c6
lea ecx, [esp + 0x10]
call fcn.004c70f0
lea ecx, [esp + 0x20]
call fcn.004b14e0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004f1eb0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x4ae9a1
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x4ae998
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::ReadAtCurrentPos
call fcn.00547050
jmp 0x4ae975
Function at 0x4aea00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x5c1040]
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 ebx, [esp + 0x10]
push 0x7f
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.004bbec0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004b1470
xor edi, edi
dec edi
cmp dword [ebp + 0xc], 0
js 0x4aeac8
cmp dword [ebp + 0x14], 0
js 0x4aeac8
mov edi, esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.004c7050
test al, al
jne 0x4aeae8
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], esi
lea esi, [esp + 0xc]
mov dword [esi], 0xffffffff
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esi]
lea ecx, [esp + 0x28]
call fcn.004c70f0
lea ecx, [esp + 0x30]
call fcn.004b14e0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004f1eb0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [esp + 0x28]
push 0
push dword [ebp + 0x14]
push edi
push str.File::Write
call fcn.00547050
jmp 0x4aea7f
Function at 0x4bc780
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d1170
Function at 0x4c2db0
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 0x4c2e2e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4c2e17
lea eax, [edi + 1]
cmp eax, 2
jb 0x4c2dfb
mov dword [esi], edi
call fcn.004bbef0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 0
inc eax
cmp eax, 1
jbe 0x4c2e32
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004bbef0
push dword [esi]
call fcn.004aaa80
add esp, 4
mov dword [esi], 0
jmp 0x4c2dec
mov byte [esi + 4], 0
int3
Function at 0x4d07c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
js 0x4d07fd
mov eax, dword [ebp + 8]
je 0x4d07f8
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word [eax + eax]
movzx edi, byte [edx + esi]
movzx ebx, al
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5ace60]
inc esi
cmp ecx, esi
jne 0x4d07e0
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x4d9e10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x47d8a0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x47d740
push 0x5d4898
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4d9e8a
xor esi, esi
cmp dword [0x5d489c], 0
jne 0x4d9e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x5d48a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4d9e76
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1eb0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00505947
int3
Function at 0x4dabf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.004f2c70
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5c4948]
cmp eax, 0xffffffff
jne 0x4dac3b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1eb0
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
push dword [ebp - 0x2018]
call fcn.00493330
add esp, 8
jmp 0x4dac14
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4dac14
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004f53a0
add esp, 0xc
mov ecx, dword [0x5c4948]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2018], ecx
push ecx
call fcn.00493330
add esp, 8
test ebx, ebx
je 0x4dac8a
push ebx
call fcn.004f197c
add esp, 4
mov esi, 0x101
lea edi, [ebp - 0x2010]
mov eax, dword [0x5d58e8]
mov ecx, dword [0x5c4ca4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4dadce
mov ebx, dword [0x5d58e4]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4dae2a
push 0x1000
push 0x5d48e0
lea eax, [ebp - 0x1810]
push eax
call fcn.004f53a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push edi
call fcn.004f5920
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x4dad06
mov ecx, edi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.004dae40
add esp, 8
mov ebx, 4
xor eax, eax
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
jne 0x4dad75
add ebx, 8
cmp ebx, 0x804
jne 0x4dad3d
dec esi
je 0x4dae13
test al, 1
lea edi, [ebp - 0x2010]
jne 0x4dac95
jmp 0x4dac29
mov dword [ebp - 0x2014], eax
mov eax, esi
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x4dae1d
add ecx, ebp
add ecx, 0xffffe7f0
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ecx + 8]
jne 0x4dae1d
mov ecx, dword [ecx + 4]
test ecx, ecx
mov esi, eax
mov eax, dword [ebp - 0x2014]
je 0x4dad50
mov dword [ebp + edx*8 - 0x810], 0
call dword [0x5bb424]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x4dad50
push 0x5d58e8
call fcn.004f1981
add esp, 4
cmp dword [0x5d58e8], 0xffffffff
jne 0x4dacb6
push 4
call fcn.004f190e
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.004ab310
mov dword [0x5d58e4], ebx
push 0x5d58e8
call fcn.004f19fb
add esp, 4
jmp 0x4dacb6
call fcn.005414a0
jmp 0x4dac29
mov esi, eax
mov eax, dword [ebp - 0x2014]
jmp 0x4dad50
mov ecx, ebx
call fcn.004ab320
jmp 0x4daccb