joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x7a8498]
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
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 0x10]
push 0x39
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapFileRegionToMemory
push edi
call fcn.0045f9a0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.004b4d70
mov ecx, esi
call fcn.00475190
xor ebx, ebx
test al, al
je 0x4b321a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, 3
ja case.default.0x4b3176
jmp dword [eax*4 + 0x73b60c]
mov edi, 2
jmp 0x4b31a5
mov edi, 4
jmp 0x4b31a5
mov ebx, dword [ecx + 8]
mov edi, 4
jmp 0x4b31a5
sub esp, 4
mov ecx, esi
call fcn.004b2fc0
mov ebx, eax
jmp 0x4b321a
xor edi, edi
mov ecx, esi
call fcn.004b45c0
push 0
push ebx
push 0
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp dword [esi + 0x24], eax
je 0x4b3210
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 0x24]
add eax, 1
cmp eax, 2
jb 0x4b31f0
call fcn.0045f9d0
push dword [esi + 0x24]
call fcn.00474ca0
add esp, 4
mov dword [esi + 0x24], 0
mov eax, ebx
add eax, 1
cmp eax, 2
jb 0x4b3202
mov dword [esi + 0x24], ebx
call fcn.0045f9d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esi + 0x24]
mov edi, dword [esp + 4]
add ebx, 1
cmp ebx, 2
jae 0x4b323a
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.004b4dd0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.006c9121
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0xc], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x73b630
call fcn.004b35f0
test al, al
je 0x4b3287
mov dword [esp + 4], edi
mov ecx, esi
call fcn.004b47b0
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
xor ebx, ebx
mov edi, 0xfffffffe
cmp edi, ecx
mov ecx, 0
sbb ecx, edx
jb 0x4b321a
mov dword [esi + 0x20], eax
xor eax, eax
xor ecx, ecx
mov edi, dword [esp + 4]
jmp 0x4b32da
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.004b36e0
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
js 0x4b3218
mov edx, dword [ebx + 8]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add ecx, edx
mov dword [esi + 0x20], edx
and edi, 2
add edi, 2
push ecx
push ebx
push eax
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4b3218
add eax, dword [esp + 0xc]
mov dword [esi + 0x1c], eax
mov bl, 1
jmp 0x4b321a
Function at 0x4b34c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004b45d0
mov dword [esi], 0
test eax, eax
je 0x4b3524
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jb 0x4b350a
mov dword [ebp - 0x10], eax
call fcn.0045f9d0
push dword [esi]
call fcn.00474ca0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x4b351d
mov dword [esi], ebx
mov ebx, eax
call fcn.0045f9d0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.0045d290
lea ecx, [esi + 0x10]
call fcn.0056c420
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
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4b46c0
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 edi, dword [ebp + 0xc]
mov eax, dword [0x7a8498]
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
movdqa xmmword [esp + 0x20], xmm0
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.0045f9a0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.004b4d70
test edi, edi
js 0x4b4781
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.0056c3f0
test al, al
je 0x4b4752
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.0056c500
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.0056c490
jmp 0x4b4786
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004b4dd0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4b47b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0x6c], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 0x10]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.0045f9a0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.004b4d70
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.0056c3f0
test al, al
je 0x4b4838
lea ecx, [esp + 0x10]
push 0
push 0
push esi
push str.File::GetLength
call fcn.0056c500
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
lea eax, [esp + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb esi, esi
mov edi, dword [esp + 0xc]
or edi, esi
or esi, dword [esp + 8]
lea ecx, [esp + 0x10]
call fcn.0056c490
lea ecx, [esp + 0x20]
call fcn.004b4dd0
mov ecx, dword [esp + 0x6c]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x4b4890
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
lea edi, [esp + 0x20]
push 0xa9
push str..._.._base_files_file_win.cc
push str.SetLength
push edi
call fcn.0045f9a0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push edi
mov edi, dword [ebp + 0xc]
call fcn.004b4d70
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0
call fcn.0056c3f0
test al, al
je 0x4b4920
lea ecx, [esp + 0x20]
push edi
push ebx
push esi
push str.File::SetLength
call fcn.0056c500
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4b49f4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4b49f4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4b49f4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
jmp 0x4b49f6
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.0056c490
lea ecx, [esp + 0x30]
call fcn.004b4dd0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.006c9121
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4b4ae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x7a8498]
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
movdqa xmmword [esp + 0x20], xmm0
lea esi, [esp + 0x10]
push 0x160
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.0045f9a0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.004b4d70
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x4b4ca3
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0xc], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, eax
shl edi, 8
mov ebx, edi
and ebx, 0x2000000
or ebx, esi
and edi, 0x8000000
or edi, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x4b4c29
mov esi, dword [esi]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
push 0
push edi
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [ebx], eax
je 0x4b4c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x4b4c6d
call fcn.0045f9d0
push dword [ebx]
call fcn.00474ca0
add esp, 4
mov dword [ebx], 0
mov eax, edi
add eax, 1
cmp eax, 2
jb 0x4b4c7e
mov dword [ebx], edi
call fcn.0045f9d0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
add edi, 1
cmp edi, 2
jae 0x4b4cb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b4a20
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x4b4ce5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x4b4ce5
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
mov eax, dword [ebp + 0xc]
test al, 4
jne 0x4b4cd6
test al, 0xa
je 0x4b4ce5
mov byte [ebx + 0x18], 1
jmp 0x4b4ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.004b4dd0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.006c9121
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4b4d10
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 0x4b4d5c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x4b4d46
call fcn.0045f9d0
push dword [esi]
call fcn.00474ca0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4b4d55
mov dword [esi], ebx
call fcn.0045f9d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4b8d00
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4b8e98
cmp dword [0x7a84e0], 0xe69e32f3
jne 0x4b8eb5
mov esi, 0x3f0
mov eax, 0x20
mov ecx, 0x20
add esi, dword [edi + 0xc]
mov byte [ebp - 0x11], 0xff
je 0x4b8d4c
bsr ecx, esi
xor ecx, 0x1f
sub eax, ecx
mov cl, byte [eax + 0x7323c4]
mov edx, esi
shr edx, cl
and edx, 3
mov ecx, dword [eax*4 + 0x7323e8]
and ecx, esi
lea eax, [edx + eax*4]
cmp ecx, 1
sbb eax, 0xffffffff
movzx ebx, word [eax + eax + 0x7322b8]
shl ebx, 5
mov eax, dword [ebp + 8]
lea edi, [eax + ebx]
add edi, 0x58
lea ecx, [eax + 0x50]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov eax, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov dword [ebp - 0x18], ecx
push ecx
call eax
test al, al
jne 0x4b8dd7
mov edx, dword [ebp - 0x20]
mov eax, edx
test edx, edx
jle 0x4b8db4
pause
add eax, 0xffffffff
jne 0x4b8daa
add dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x18]
add edx, edx
cmp edx, 0x10
mov eax, 0x10
cmovge edx, eax
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x1c], 0x40
mov eax, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jl 0x4b8d9a
call fcn.004bbcf0
mov ecx, edi
mov eax, dword [edi]
mov edi, dword [eax]
test edi, edi
je 0x4b8ec7
mov byte [ebp - 0x11], 0
mov esi, dword [edi]
mov edx, esi
bswap edx
test esi, esi
je 0x4b8e24
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + ebx + 0x64]
test edx, 0x1fc000
je 0x4b8f12
mov ebx, edx
xor ebx, edi
cmp ebx, 0x1fffff
ja 0x4b8f12
not esi
cmp dword [edi + 4], esi
jne 0x4b8f12
prefetcht0 byte [edx]
mov dword [eax], edx
add word [eax + 0xc], 1
mov esi, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x90c]
add ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x910]
mov dword [esi + 0x90c], ecx
cmp eax, ecx
cmovae ecx, eax
mov dword [esi + 0x910], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
push esi
call fcn.004b8f30
push edi
push dword [0x7bc4c4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x7bafb8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xa0], edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push str..._.._base_allocator_partition_allocator_thread_cache.cc_423__Check_failed:_root
call fcn.00458eb0
add esp, 4
cmp dword [0x7a84e0], 0xe69e32f3
je 0x4b8d2e
push str..._.._base_allocator_partition_allocator_thread_cache.cc_426__Check_failed:_tools::kThreadCacheNeedleArray_0___tools::kNeedle1
call fcn.00458eb0
add esp, 4
jmp 0x4b8d2e
lea eax, [ebp - 0x11]
push eax
push 0x4000
push esi
push 2
mov esi, dword [ebp + 8]
push esi
call fcn.004bbe40
test eax, eax
je 0x4b8f17
mov edi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x4b8e2e
call fcn.00463b60
xor edi, edi
jmp 0x4b8e51
Function at 0x4b9cc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x904]
mov ebx, dword [ecx + 0x908]
add ebx, eax
mov eax, dword [ecx + 0x8fc]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x4b9cf6
push dword [ebp + 8]
call fcn.0056dbf0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x50]
push eax
call fcn.00405540
add esp, 4
cmp ebx, edi
jbe 0x4b9d56
push ebx
call fcn.0056dc20
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x40]
push eax
call fcn.00405540
add esp, 4
mov eax, dword [esi + 0x90c]
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x30]
push eax
call fcn.00405540
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x8fc]
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x10]
push eax
call fcn.00405540
add esp, 4
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x20]
push eax
call fcn.00405540
add esp, 4
mov ecx, dword [0x7c01fc]
test ecx, ecx
je 0x4b9e29
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push esi
call fcn.00573e80
int3
Function at 0x4be230
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x7a8498]
xor ecx, ebp
mov dword [ebp - 8], ecx
test eax, eax
je 0x4be27c
push eax
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x4be27c
lea esi, [ebp - 0xc]
push str.success
push 0x20
push str..._.._base_rand_util_win.cc
push esi
call fcn.00458d10
add esp, 0x10
mov ecx, esi
call fcn.00458d80
mov ecx, esi
call fcn.00458d90
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006c9121
add esp, 8
pop esi
pop ebp
ret

Function at 0x4befb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x7bcf68]
mov ecx, dword [0x7bafb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x14]
jg 0x4befdb
mov ecx, 0x7bcf60
pop ebp
jmp fcn.0046cea0
push 0x7bcf68
call fcn.006c9157
add esp, 4
cmp dword [0x7bcf68], 0xffffffff
jne 0x4befd0
mov dword [0x7bcf64], 0
mov dword [0x7bcf60], 0
mov ecx, 0x7bcf60
push 0
call fcn.0046cf10
push 0x7bcf68
call fcn.006c91cd
add esp, 4
jmp 0x4befd0
Function at 0x4c8c60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
xor ecx, ecx
cmp dword [ebp + 8], 0
sete cl
push 0
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], 0
test eax, eax
je 0x4c8cec
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x4c8cc6
call fcn.0045f9d0
push dword [esi]
call fcn.00474ca0
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4c8cd5
mov dword [esi], edi
call fcn.0045f9d0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
add eax, 1
cmp eax, 1
jbe 0x4c8cf0
jmp 0x4c8d16
mov byte [esi + 4], 1
lea edi, [ebp - 0x14]
push str.handle_.IsValid__
push 0x20
push str..._.._base_synchronization_waitable_event_win.cc
push edi
call fcn.00458d10
add esp, 0x10
mov ecx, edi
call fcn.00458d80
mov ecx, edi
call fcn.00458d90
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4c9e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4c9f55
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, 0
cmp edx, 8
jb 0x4c9f40
mov edi, edx
and edi, 0xfffffff8
lea eax, [edi - 8]
mov ecx, eax
shr ecx, 3
add ecx, 1
test eax, eax
mov dword [ebp - 0x10], ecx
je 0x4c9f5f
mov eax, ecx
and eax, 0xfffffffe
pxor xmm2, xmm2
xor ebx, ebx
pxor xmm0, xmm0
pxor xmm1, xmm1
nop word cs:[eax + eax]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + ebx]
mov edx, dword [esi + ebx + 4]
mov esi, dword [ebp + 8]
xor ecx, dword [esi + ebx]
xor edx, dword [esi + ebx + 4]
movd xmm4, ecx
movd xmm3, edx
punpcklbw xmm4, xmm2
punpcklwd xmm4, xmm2
por xmm4, xmm0
punpcklbw xmm3, xmm2
punpcklwd xmm3, xmm2
por xmm3, xmm1
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + ebx + 8]
xor ecx, dword [esi + ebx + 8]
movd xmm0, ecx
mov ecx, dword [edx + ebx + 0xc]
xor ecx, dword [esi + ebx + 0xc]
movd xmm1, ecx
punpcklbw xmm0, xmm2
punpcklwd xmm0, xmm2
por xmm0, xmm4
punpcklbw xmm1, xmm2
punpcklwd xmm1, xmm2
por xmm1, xmm3
add ebx, 0x10
add eax, 0xfffffffe
jne 0x4c9e60
test byte [ebp - 0x10], 1
je 0x4c9f0d
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + ebx]
mov edx, dword [ebp + 8]
xor eax, dword [edx + ebx]
mov ecx, dword [ecx + ebx + 4]
movd xmm2, eax
xor ecx, dword [edx + ebx + 4]
movd xmm3, ecx
pxor xmm4, xmm4
punpcklbw xmm2, xmm4
punpcklwd xmm2, xmm4
por xmm0, xmm2
punpcklbw xmm3, xmm4
punpcklwd xmm3, xmm4
por xmm1, xmm3
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
mov edx, dword [ebp + 0x10]
cmp edi, edx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
je 0x4c9f57
nop word cs:[eax + eax]
nop
movzx ecx, byte [esi + edi]
xor cl, byte [ebx + edi]
movzx ecx, cl
or eax, ecx
add edi, 1
cmp edx, edi
jne 0x4c9f40
jmp 0x4c9f57
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
test byte [ebp - 0x10], 1
jne 0x4c9ed5
jmp 0x4c9f0d