joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ff77b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1017c120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea esi, [edi + 0xc]
mov dword [ebp - 0x14], edi
lea ecx, [esi + 8]
mov dword [edi], vtable.EventInterface.0
mov dword [ebp - 0x10], esi
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
mov dword [ebp - 4], 1
push 0x10114e77
mov byte [esi], 0xff
mov dword [esi + 4], 0xffffffff
call fcn.1000a1b0
mov word [esi + 0x20], 0
mov byte [esi + 0x22], 0
mov dword [ebp - 4], 2
lea ecx, [esi + 8]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov al, byte [ebx]
mov byte [esi], al
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
lea eax, [ebx + 8]
cmp ecx, eax
je 0x10007bfb
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10007bf4
mov eax, dword [eax]
push edx
push eax
call fcn.1000a1b0
movzx eax, byte [ebx + 0x20]
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0x20], al
movzx eax, byte [ebx + 0x21]
mov byte [esi + 0x21], al
movzx eax, byte [ebx + 0x22]
mov byte [esi + 0x22], al
mov dword [edi + 8], ecx
call fcn.100ba3b2
mov dword [edi + 0x30], eax
mov eax, edi
mov dword [edi + 0x34], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000a3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ff9b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1017c120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100d1c23
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100ba7fe
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ff70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.100201d0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001ffc6
add eax, 0xc
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.100ba57a
int3

Function at 0x10020340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x1002036b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10020354
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x100312e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x1003144d
lea eax, [ecx - 1]
mov esi, dword [0x10181344]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x1018134c
lea eax, [edi + edi]
push eax
call fcn.10030b90
mov eax, dword [0x10181344]
lea ebx, [edi - 1]
mov dword [0x10181358], ebx
mov dword [0x1018135c], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10031444
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x1018134c]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x100313a2
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1003140f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x100313dc
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x100313d4
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x1003140f
cmp ebx, edx
je 0x100313ec
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10031420
cmp ebx, edx
jne 0x100313e0
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10031444
mov ebx, dword [0x10181358]
jmp 0x10031350
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1003140f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.100ba55a
int3
Function at 0x1003b4e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
not eax
mov dword [ebp - 4], ebx
cmp edi, 8
jb 0x1003b58f
mov ecx, edi
shr ecx, 3
mov dword [ebp + 8], ecx
mov ebx, dword [esi + 4]
sub edi, 8
mov ecx, dword [esi]
add esi, 8
xor ecx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
mov dword [ebp + 0xc], ecx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x1011f388]
mov edx, dword [ebp + 0xc]
xor eax, dword [ecx*4 + 0x1011f788]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10120388]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10120788]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x1011ef88]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x1011ff88]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x1011fb88]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x10120b88]
sub dword [ebp + 8], 1
jne 0x1003b507
mov ebx, dword [ebp - 4]
test edi, edi
je 0x1003b5ad
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1011ef88]
sub edi, 1
jne 0x1003b593
pop edi
not eax
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1003b6b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10174860
push 0x100d3590
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1017c120]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x1003b753
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1003b753
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1003b753
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1003b753
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1003b75c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret
Function at 0x1003ba70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1017c120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1003bb39
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003bab6
sub edi, 0x8000000
jmp 0x1003bb31
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1003bb39
cmp dword [ebp - 0x10], 0x10000
jne 0x1003bb1c
cmp dword [ebp - 0x14], 0x10000
jb 0x1003bb1c
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1003bbf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1003bb39
sub edi, 0x10000
jmp 0x1003bb31
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x1003baa1
movzx eax, si
test eax, eax
je 0x1003bb48
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x1003bbf2
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003bb75
add esi, 0x8000000
jmp 0x1003bbea
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x1003bbf2
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x1003bbd5
cmp ecx, 0x10000
jb 0x1003bbd5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1003bbf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1003bbf2
add esi, 0x10000
jmp 0x1003bbea
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1003bbea
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1003bb60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret
Function at 0x1003bc10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1017c120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x101813b0], 0
jne 0x1003bc99
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x101813b0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1003bc99
push esi
mov esi, dword [0x101813bc]
mov dword [0x101813c4], eax
mov dword [0x101813c0], eax
mov dword [0x101813b8], eax
push edi
test esi, esi
je 0x1003bc7a
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x1003bc91
mov esi, dword [esi + 4]
test esi, esi
jne 0x1003bc61
xor eax, eax
pop edi
mov dword [0x1018136c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003bc7c
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret
Function at 0x1003c0f0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1018136c]
push esi
mov esi, ecx
test eax, eax
jne 0x1003c15e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x1003c10a
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.100d1c23
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003c14b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.100d1c10
add esp, 8
mov dword [0x1018136c], esi
mov eax, esi
mov dword [0x101813b8], 0
pop edi
pop esi
ret
mov eax, dword [0x101813c0]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x101813c0], edi
pop edi
pop esi
ret
Function at 0x1003d6c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1003d6e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x100a6850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100467a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100467d2
jl 0x100467c5
test ecx, ecx
jne 0x100467d2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10046892
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1000a0e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1004683e
jg 0x100467fd
test esi, esi
je 0x1004683e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10046815
mov eax, dword [esp + 0x10]
jl 0x1004680f
cmp eax, esi
jae 0x10046815
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100d39d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1004685f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1004687b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100467e4
jl 0x1004687b
test ecx, ecx
jne 0x100467e4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100468d0
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100468d0
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.100d39d0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10046939
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100468f6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10046924
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100de671
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10046939
cmp edi, eax
ja 0x10046902
test edi, edi
je 0x10046939
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100de671
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004f6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 8]
mov edi, edx
and edi, 7
je 0x1004f6fb
cmp edx, edi
jge 0x1004f6eb
call fcn.1004ee70
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, edx
test edx, edx
jle 0x1004f728
mov edx, dword [esi + 0xc]
push ebx
mov bl, dl
nop dword [eax]
mov byte [ebp + eax - 4], bl
sub ecx, 8
shr edx, 8
inc eax
mov dword [esi + 0xc], edx
mov bl, dl
test ecx, ecx
jg 0x1004f710
mov dword [esi + 8], ecx
pop ebx
test ecx, ecx
jns 0x1004f74d
mov ecx, dword [0x1017fef4]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0x10125130
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jge 0x1004f76e
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x1004f75f
xor dl, dl
jmp 0x1004f764
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
mov byte [ebp + eax - 4], dl
inc eax
cmp eax, 4
jl 0x1004f757
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1004f7b5
mov ecx, dword [0x1017fef4]
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.zlib_corrupt
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1004f7df
mov ecx, dword [0x1017fef4]
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.read_past_buffer
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x1004f7fd
push edi
mov ecx, esi
call fcn.1004efc0
add esp, 4
test eax, eax
je 0x1004f745
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.100d39d0
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10057b50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x139c
call fcn.100d2f10
mov eax, dword [0x1017c120]
xor eax, esp
mov dword [esp + 0x1398], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [esp + 0x14], ebx
call fcn.100bcd3f
mov dword [esp + 0x139c], 0xffffffff
mov esi, 1
mov dword [esp + 0x1c], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, esi
mov dword [esp + esi*4 + 0x1c], eax
inc esi
cmp esi, 0x270
jb 0x10057b92
sub edi, ebx
mov dword [esp + 0x18], 0x270
cmp edi, 0xffffffff
jne 0x10057bdd
lea ecx, [esp + 0x18]
call fcn.1005b170
add eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1398]
xor ecx, esp
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
mov dword [esp + 0x10], eax
lea ecx, [edi + 1]
xor ebx, ebx
xor esi, esi
test edi, edi
je 0x10057c00
lea ecx, [esp + 0x18]
call fcn.1005b170
mov ebx, eax
lea ecx, [edi + 1]
or esi, 0xffffffff
xor edx, edx
mov eax, esi
div ecx
xor edx, edx
mov ecx, eax
mov eax, ebx
div dword [esp + 0x10]
cmp eax, ecx
jb 0x10057c23
xor edx, edx
lea ecx, [edi + 1]
mov eax, esi
div ecx
cmp edx, edi
jne 0x10057be7
jmp 0x10057c27
mov ecx, dword [esp + 0x10]
mov eax, ebx
xor edx, edx
div ecx
mov ecx, dword [esp + 0x13a4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
add eax, edx
call fcn.100d1bdf
mov esp, ebp
pop ebp
ret
Function at 0x1005b170
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x1005b1ce
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x1005b190
mov eax, dword [edi]
jmp 0x1005b2b9
cmp eax, 0x4e0
jb 0x1005b2b9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1005b1f0
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1005b240
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100650a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10065101
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100650e4
cmp edi, 2
jb 0x100650e4
cmp byte [esi], cl
jne 0x100650e4
cmp byte [esi + 1], cl
jne 0x100650e4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10133d88]
jmp 0x100650b5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10133d88]
test edi, edi
jne 0x100650b5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10065130
cmp cl, 0x23
jne 0x10065117
cmp byte [esi], cl
jne 0x10065117
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10133d88]
test cl, cl
jne 0x10065108
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x100652c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x100652d2
test esi, esi
jne 0x100652e9
push 0x5e4
push 0x1012c61c
push str.filename__mode
call fcn.100dcbc8
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x100652f6
mov dword [eax], 0
mov edx, esi
mov ecx, edi
call fcn.10065140
mov esi, eax
test esi, esi
je 0x100653ca
push esi
call fcn.100df1d4
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x100653c1
push 2
push 0
push esi
call fcn.100de104
add esp, 0xc
test eax, eax
jne 0x100653c1
push esi
call fcn.100df1d4
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x100653c1
push 0
push ebx
push esi
call fcn.100de104
add esp, 0xc
test eax, eax
jne 0x100653c1
mov eax, dword [0x101809c4]
test eax, eax
je 0x10065361
inc dword [eax + 0x374]
push edi
call fcn.100dccca
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100653c1
push esi
push edi
push 1
push ebx
call fcn.100de671
add esp, 0x10
push esi
cmp eax, edi
je 0x100653a9
call fcn.100de9e2
mov eax, dword [0x101809c4]
add esp, 4
test eax, eax
je 0x10065399
dec dword [eax + 0x374]
push ebx
call fcn.100d718a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100de9e2
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x100653ba
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100de9e2
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret