joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4a834d
test edi, edi
je 0x4a82fa
cmp word [edi], 0
je 0x4a82fa
cmp byte [esi + 0x128], 0
push ebx
lea ebx, [esi + 0x18]
jne 0x4a8289
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
mov ecx, dword [ebp + 8]
call fcn.0049c7f0
push 0x79327c
mov esi, eax
push 0x791e68
push esi
call fcn.0049a160
lea ecx, [ebx + 4]
push ecx
push 0x791e68
push esi
call fcn.0049a160
push 0x7932b4
push 0x791e68
push esi
call fcn.0049a160
push edi
push 0x791e68
push esi
call fcn.0049a160
push 0x7932ac
push 0x791e68
push esi
call fcn.0049a160
add esp, 0x3c
xor al, al
pop ebx
pop edi
pop esi
pop ebp
ret 0x14
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x4a8309
mov edi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
mov ecx, dword [ebp + 8]
call fcn.0049c7f0
push 0x79327c
mov esi, eax
push 0x791e68
push esi
call fcn.0049a160
lea ecx, [edi + 4]
push ecx
push 0x791e68
push esi
call fcn.0049a160
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebp
ret 0x14
pop edi
mov al, 1
pop esi
pop ebp
ret 0x14
Function at 0x4a8cb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e9ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3dc], edx
mov ebx, ecx
mov dword [ebp - 0x3d4], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call fcn.005f1fc0
lea ecx, [ebp - 0x3d0]
mov edi, 0x12a0
call fcn.004a91b0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x7c], 0x794d88
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push 0
push esi
push ebx
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 4], 0
call fcn.004a9310
test al, al
jne 0x4a8d72
push str.Hash
push ebx
call fcn.0049c8a0
add esp, 8
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 0x7c], vtable.t_byteStreamRead.0
mov bl, al
call fcn.004a9250
jmp 0x4a8e35
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3d8], 0
push eax
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a8da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a8da2
xor esi, esi
push 0x100000
mov dword [ebp - 0x78], esi
call fcn.005cff37
mov esi, dword [ebp - 0x78]
mov ebx, eax
mov ecx, dword [ebp - 0x74]
mov eax, esi
add esp, 4
sub eax, ecx
je 0x4a8e0e
mov eax, 0x100000
sub esi, ecx
lea ecx, [ebp - 0x7c]
cmp esi, 0x100000
cmova esi, eax
cmp edi, esi
cmovb esi, edi
push esi
push ebx
push dword [ebp - 0x3d4]
call fcn.004b3030
test al, al
je 0x4a8e65
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.005f2000
add esp, 0xc
cmp edi, esi
jbe 0x4a8e0e
mov ecx, dword [ebp - 0x74]
sub edi, esi
mov esi, dword [ebp - 0x78]
mov eax, esi
sub eax, ecx
mov eax, 0x100000
jne 0x4a8dc5
push ebx
call fcn.005cff1c
add esp, 4
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 0x7c], vtable.t_byteStreamRead.0
call fcn.004a9250
mov bl, 1
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x3dc]
call fcn.005f1ea0
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005cff1c
mov ecx, dword [ebp - 0x3d4]
add esp, 4
call fcn.0049c7f0
push str.Hash
push 0x791e68
push eax
call fcn.0049a160
add esp, 0xc
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 0x7c], vtable.t_byteStreamRead.0
call fcn.004a9250
xor bl, bl
jmp 0x4a8e35
Function at 0x4a8eb0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov ecx, dword [ebp + 8]
mov esi, edi
cmp ecx, 3
jl 0x4a8f47
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov dword [ebp + 8], ecx
nop dword [eax]
movzx eax, byte [ebx]
shr eax, 2
movzx eax, byte [eax + 0x781950]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + 0x781950]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + 0x781950]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
movzx eax, byte [eax + 0x781950]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x4a8ee0
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4a8fae
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + 0x781950]
mov byte [esi], al
mov dl, byte [ebx]
and dl, 3
shl dl, 4
cmp ecx, 1
jle 0x4a8f94
movzx eax, byte [ebx + 1]
shr al, 4
or dl, al
movzx eax, dl
movzx eax, byte [eax + 0x781950]
mov byte [esi + 1], al
add esi, 2
cmp ecx, 2
jl 0x4a8fa3
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x781950]
jmp 0x4a8fa5
movzx eax, dl
mov al, byte [eax + 0x781950]
mov byte [esi + 1], al
add esi, 2
mov al, 0x3d
mov byte [esi], al
mov byte [esi + 1], 0x3d
add esi, 2
mov byte [esi], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4a8fb4
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a9310
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x130]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x130]
mov eax, dword [eax + 0x18]
mov ecx, esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call eax
test al, al
jne 0x4a9362
mov ecx, dword [ebp + 8]
call fcn.0049c7f0
push 0x791f18
push 0x791e68
push eax
call fcn.0049a160
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push ecx
push eax
mov ecx, esi
call fcn.004a76c0
test al, al
je 0x4a933c
mov dword [ebx + 0x34c], esi
mov eax, 0x77db48
mov esi, dword [ebp - 4]
xor ecx, ecx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 8], ebx
cmp dword [eax], ebx
je 0x4a9412
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x4a9388
mov ecx, dword [ebp + 8]
call fcn.0049c7f0
push 0x7945f4
mov esi, eax
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
push ebx
push 0x791e60
push esi
call fcn.0049a160
add esp, 0xc
cmp byte [edi + 0x11c], 0
je 0x4a93d5
add edi, 0xc
jmp 0x4a93d8
mov edi, dword [edi + 8]
mov ecx, dword [ebp + 8]
call fcn.0049c7f0
push 0x7945e4
mov esi, eax
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
mov dword [ebp - 4], ecx
push ecx
mov ecx, edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
call fcn.0049a080
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
mov ebx, 1
cmp eax, 0xffffffff
jne 0x4a94ca
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 8]
cmp eax, 0x20
jne 0x4a9476
cmp ebx, 3
jge 0x4a94de
cmp byte [esi + 0x350], 0
je 0x4a94a1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a94a1
cmp eax, 5
jne 0x4a94de
lea ecx, [edi + 8]
cmp ebx, 3
jge 0x4a94de
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x4a9492
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp + 0xc]
mov ecx, edi
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.0049a080
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc ebx
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4a9450
push edi
lea ecx, [esi + 0xc]
call fcn.00499d10
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [ecx + 4]
test eax, eax
jne 0x4a9501
cmp byte [ecx + 0x114], al
jne 0x4a94ef
mov edi, dword [ecx]
mov ecx, dword [ebp + 8]
call fcn.0049c7f0
push 0x794618
jmp 0x4a93e5
cmp byte [ecx + 0x114], 0
jne 0x4a950c
mov edi, dword [ecx]
mov ecx, dword [ebp + 8]
push eax
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
jmp 0x4a93d8
Function at 0x4ad590
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, eax
je 0x4ad703
cmp dword [edx + 0x1c], 0x10
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 0x14], eax
lea ebx, [edx + 8]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 8], eax
mov esi, edx
jb 0x4ad5c9
mov ebx, dword [edx + 8]
mov eax, dword [edx + 0x18]
xor edx, edx
push edi
mov edi, 0x811c9dc5
test eax, eax
je 0x4ad5f4
mov ecx, eax
nop word [eax + eax]
movzx eax, byte [edx + ebx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x4ad5e0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.004adea0
push 0x38
push edi
call fcn.005be247
mov edi, dword [ebp - 4]
add esp, 8
dec dword [edi + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x4ad65d
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x4ad610
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x4ad6f8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
jne 0x4ad66f
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x4ad672
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x4ad6f8
nop dword [eax]
cmp dword [esi + 0x1c], 0x10
lea ebx, [esi + 8]
jb 0x4ad68c
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp + 8], eax
mov edx, 0x811c9dc5
test eax, eax
je 0x4ad6b4
mov edi, eax
nop
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4ad6a0
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edx
lea eax, [ecx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.004adea0
push 0x38
push edi
call fcn.005be247
mov edi, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [edi + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x4ad709
cmp esi, eax
jne 0x4ad6c8
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x4ad680
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ae8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ea34b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7ce4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.ImmCleanup.0
mov edx, dword [0x7d88dc]
mov eax, dword [0x7d88e0]
cmp edx, eax
jne 0x4ae913
test eax, eax
jne 0x4ae8f5
mov edx, dword [0x7d88e4]
test edx, edx
jne 0x4ae8f9
lea edx, [eax + 1]
jmp 0x4ae903
add edx, edx
test edx, edx
js 0x4ae935
cmp edx, 0xfffffff
ja 0x4ae935
push edx
call fcn.00475d40
test eax, eax
je 0x4ae935
mov edx, dword [0x7d88dc]
mov eax, dword [0x7d88d8]
lea eax, [eax + edx*8]
test eax, eax
je 0x4ae92e
mov dword [eax], ebx
mov dword [eax + 4], str.t_antiHook
mov edx, dword [0x7d88dc]
inc edx
mov dword [0x7d88dc], edx
mov dword [ebx], vtable.ImmSingleton_class_t_antiHook_.0
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebx + 4], fcn.005cff37
mov dword [ebx + 8], fcn.005cfea2
mov dword [ebx + 0xc], fcn.005cff1c
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x4000
mov dword [ebx], vtable.common::t_heap.0
lea edi, [ebx + 0x18]
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
movss xmm0, dword [0x79b398]
mulss xmm0, dword [0x79b358]
mov dword [edi], ebx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x11
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], ebx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
call fcn.005beb30
movss xmm0, dword [0x79b398]
mulss xmm0, dword [0x79b338]
mov dword [esi + 0x18], eax
call fcn.005beb30
xor ecx, ecx
cmp eax, 0x11
cmovb eax, ecx
mov dword [esi + 0x1c], eax
lea esi, [edi + 0x38]
mov dword [ebp - 0x14], esi
movss xmm0, dword [0x79b398]
mulss xmm0, dword [0x79b358]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 8], 0x11
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x30], ebx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
call fcn.005beb30
movss xmm0, dword [0x79b398]
mulss xmm0, dword [0x79b338]
mov dword [esi + 0x18], eax
call fcn.005beb30
xor ecx, ecx
cmp eax, 0x11
cmovb eax, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0x90], ecx
mov dword [ebx + 0x94], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b0260
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ecx
push esi
call fcn.004b0410
test al, al
je 0x4b02c4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.004bcd00
mov esi, eax
cmp byte [esi], 0
je 0x4b032a
mov ecx, esi
call fcn.004bd0c0
mov eax, dword [esi + 4]
test eax, eax
jg 0x4b029b
mov dword [esi + 4], 0
pop esi
pop ecx
ret
mov dword [esi + eax*8 + 0xfc8], 0
mov dword [esi + eax*8 + 0xfcc], 0
add dword [esi + 4], 0xffffffff
je 0x4b032a
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
pop ecx
ret
call fcn.004b0800
test al, al
je 0x4b032a
cmp byte [0x7f8e7c], 0
je 0x4b032a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.004bd590
mov esi, eax
cmp byte [esi + 4], 0
je 0x4b032a
push ecx
mov ecx, esi
call fcn.004bd6b0
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4b0304
mov dword [esi + 0xc], 0
pop esi
pop ecx
ret
mov dword [esi + eax*8 + 0xfb0], 0
mov dword [esi + eax*8 + 0xfb4], 0
add dword [esi + 0xc], 0xffffffff
je 0x4b032a
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
pop ecx
ret
Function at 0x4b1c60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ea5b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], edx
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.color_scheme
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00474450
mov dword [ebp - 4], 0
call fcn.004b1b00
mov edi, eax
push edi
mov dword [ebp - 0x38], edi
call fcn.005bdb67
add esp, 4
test eax, eax
jne 0x4b1df2
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov edx, 0x811c9dc5
mov eax, dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
xor ecx, ecx
add eax, eax
je 0x4b1d1a
mov edi, eax
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4b1d06
mov edi, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x30]
call fcn.004b2450
mov eax, dword [eax + 4]
test eax, eax
jne 0x4b1d35
mov eax, dword [edi + 0x34]
cmp eax, dword [edi + 0x34]
je 0x4b1d8e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 0x30]
call fcn.004b20e0
mov esi, dword [eax]
add esi, 0x20
call fcn.005c45dc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x40], eax
jb 0x4b1d5f
mov esi, dword [esi]
mov dword [eax], 0
lea eax, [ebp - 0x34]
push 0xa
push eax
push esi
call fcn.005d57ed
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x34]
je 0x4b1df8
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0x22
je 0x4b1e02
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0x2d], 1
mov dword [eax], ecx
jmp 0x4b1d92
mov byte [ebp - 0x2d], 0
push edi
call fcn.005bdb78
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 8
jb 0x4b1dd1
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b1dc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b1e0c
push ecx
push edx
call fcn.005be247
add esp, 8
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push eax
call fcn.005bdc0d
push str.invalid_stoi_argument
call fcn.005bc923
push str.stoi_argument_out_of_range
call fcn.005bc963
call fcn.005c44be
int3
Function at 0x4b1f50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x4b20cd
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.004ad9f0
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x4b20a8
cmp dword [esi + 0x1c], 8
lea ecx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ecx
jb 0x4b1fcb
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov ecx, dword [ecx + 0x10]
mov ebx, 0x811c9dc5
add ecx, ecx
mov edx, 0
mov dword [ebp - 8], ecx
je 0x4b1ffb
mov edi, dword [ebp - 4]
mov eax, ecx
movzx ecx, byte [edx + edi]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, eax
jb 0x4b1fe4
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
and ebx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
lea ecx, [ecx + ebx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x4b2018
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x4b209e
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.004a72f0
add esp, 8
test al, al
je 0x4b2055
mov ebx, dword [ebx]
cmp ebx, esi
je 0x4b204d
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x4b209b
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x4b207e
nop dword [eax]
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.004a72f0
add esp, 8
test al, al
jne 0x4b20b1
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x4b2060
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x4b1fb5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x4b209b
push str.invalid_hash_bucket_count
call fcn.005bc943
int3
Function at 0x4b2550
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ea670
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x36c]
call fcn.004a91b0
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - 0x18], 0x794d44
mov dword [ebp - 4], 0
lea eax, [edi + 0xc]
cmp byte [edi + 0x11c], 0
jne 0x4b25b9
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push edi
push ebx
lea ecx, [ebp - 0x36c]
call fcn.004a9310
test al, al
je 0x4b2631
push 2
push 0x792ba8
push ebx
lea ecx, [ebp - 0x18]
call fcn.004b2e70
test al, al
je 0x4b2631
push dword [esi + 0xc]
lea ecx, [ebp - 0x18]
push dword [esi + 4]
push ebx
call fcn.004b2e70
test al, al
je 0x4b2631
lea ecx, [ebp - 0x36c]
call fcn.004a9530
push dword [esi + 4]
call fcn.005cff1c
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov bl, 1
mov dword [esi + 0xc], 0
jmp 0x4b2633
xor bl, bl
lea ecx, [ebp - 0x36c]
mov dword [ebp - method.t_fileWrite.virtual_0], vtable.t_fileWrite.0
mov dword [ebp - 0x18], vtable.t_byteStreamWrite.0
call fcn.004a9250
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret 0xc