joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5684a7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x5685dd
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x5685b8
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x568506
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x5684e2
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x57064f
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x57067c
push esi
call fcn.005776e5
cmp byte [esi + 0x40], 0
pop ecx
je 0x570675
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x5706eb
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x5706e0
mov eax, dword [esi + 8]
test eax, eax
je 0x57069d
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x5706dc
cmp eax, 2
je 0x5706e0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x570692
cmp eax, 3
je 0x5706c1
cmp eax, 1
jne 0x570692
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x570692
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x570692
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x570709
cmp eax, 0xcc
je 0x570709
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.00570522
pop esi
ret
Function at 0x578fef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x578ffd
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x5790d1
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5ba198]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5ba198]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5ba198]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5ba198]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5ba198]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5ba198]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5ba198]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5ba198]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x57901a
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x5790f1
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x5ba198]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x5790d7
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x587060
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x596548
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [ecx + 4]
test edi, edi
mov dword [esp + 0x14], 0
jne 0x58708b
xor eax, eax
jmp 0x5870a1
mov edx, dword [ecx + 8]
sub edx, edi
mov eax, 0x1b4e81b5
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, dword [esp + 0x1c]
cmp eax, esi
jae 0x5870da
test edi, edi
jne 0x5870b1
xor eax, eax
jmp 0x5870c7
mov edx, dword [ecx + 8]
sub edx, edi
mov eax, 0x1b4e81b5
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ecx + 8]
lea edi, [esp + 0x20]
push edi
sub esi, eax
push esi
push edx
call fcn.00586b00
jmp 0x58710e
test edi, edi
je 0x58710e
mov ebx, dword [ecx + 8]
mov edx, ebx
sub edx, edi
mov eax, 0x1b4e81b5
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x58710e
imul esi, esi, 0x12c
push ebx
add esi, edi
push esi
lea eax, [esp + 0x24]
push eax
call fcn.00586630
push 0x58a1a0
push 4
push 0x30
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x30], 0x5bb1dc
call fcn.0047a10b
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x130
Function at 0x404920
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4cd1c4]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4049b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x4d5ae0]
cmp ecx, dword [edx + 4]
jle 0x4049a5
push 0x4d5ae0
call fcn.0046446f
add esp, 4
cmp dword [0x4d5ae0], esi
jne 0x4049a5
push 0x4a5e20
mov dword [0x4d5b04], 0x4d5b00
mov dword [0x4d5b00], 0x4b895c
call fcn.004647fb
add esp, 4
push 0x4d5ae0
call fcn.00464425
add esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x4d5b00
test edi, edi
jne 0x4049c8
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004642be
mov esp, ebp
pop ebp
ret
mov edx, 0x4b84d4
lea ecx, [esp + 0xc]
call fcn.00404710
int3

Function at 0x406bf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4cd1c4]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0x4d5ad8
push 0x405b30
push 0x4d5afc
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.0044f0eb
add esp, 0xc
test eax, eax
je 0x406ca0
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x4d5ad8
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x406c6e
push 0x4d5ad8
push 0x405b30
push 0x4d5afc
xor esi, esi
call fcn.0044f0eb
add esp, 0xc
test eax, eax
je 0x406ca5
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x4d5ad8
jmp 0x406c84
lea ecx, [esp + 8]
call fcn.00406b00
mov esi, dword [esp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test esi, esi
jne 0x406caa
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.004642be
mov esp, ebp
pop ebp
ret
call fcn.0047f6fe
call fcn.0047f6fe
mov edx, str.size
lea ecx, [esp + 8]
call fcn.00404710
int3
Function at 0x40c850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f440
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4cd1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00464563
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0044fcc4
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4cd1c4]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push 0x4d5ad8
push 0x405b30
push 0x4d5afc
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.0044f0eb
add esp, 0xc
test eax, eax
je 0x40d1de
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0x4d5ad8
lea edx, [eax + 8]
cmp eax, edx
je 0x40d16e
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40d1c4
add eax, 8
cmp eax, edx
jne 0x40d160
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 8]
movlpd qword [esp + 0x14], xmm0
push eax
push ecx
push edx
push dword [esi]
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d1c8
lea ecx, [esp + 8]
call fcn.00406b00
xor eax, eax
cmp dword [esp + 8], eax
jne 0x40d1e3
jmp 0x40d1cc
mov edx, dword [eax]
jmp 0x40d172
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.004642be
mov esp, ebp
pop ebp
ret 0xc
call fcn.0047f6fe
mov edx, str.write_some_at
lea ecx, [esp + 8]
call fcn.00404710
int3
Function at 0x40d300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4cd1c4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push 0x4d5ad8
push 0x405b30
xor edi, edi
push 0x4d5afc
mov dword [esp + 0x1c], edi
call fcn.0044f0eb
add esp, 0xc
test eax, eax
je 0x40d3e7
lea eax, [esi + 8]
mov dword [esp + 0x14], 0x4d5ad8
cmp esi, eax
je 0x40d35c
cmp dword [esi + 4], edi
jne 0x40d3a8
add esi, 8
cmp esi, eax
jne 0x40d350
xor ecx, ecx
xor esi, esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
movlpd qword [esp + 0x1c], xmm0
push eax
push esi
push ecx
push dword [ebx]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d3af
lea ecx, [esp + 0x10]
call fcn.00406b00
mov edi, dword [esp + 0x10]
xor eax, eax
jmp 0x40d3cf
mov ecx, dword [esi]
mov esi, dword [esi + 4]
jmp 0x40d360
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40d3cf
test esi, esi
je 0x40d3cf
lea edi, [eax + 2]
call fcn.004048c0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x40d3ec
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004642be
mov esp, ebp
pop ebp
ret 0xc
call fcn.0047f6fe
mov edx, str.read_some_at
lea ecx, [esp + 0x10]
call fcn.00404710
int3
Function at 0x410000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4100e8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4100d7
jg 0x410040
test edx, edx
je 0x4100d7
nop dword [eax]
call fcn.0040b9a0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x410094
jg 0x410057
test esi, esi
je 0x410094
cmp ebx, eax
jg 0x410067
jl 0x410061
cmp edi, esi
jae 0x410067
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0047c5d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4100bb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4100d1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x410040
jl 0x4100d1
test edi, edi
jne 0x410040
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x41010a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x41010c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x41018a
jg 0x41011f
test esi, esi
je 0x41018a
test eax, eax
jl 0x410164
jg 0x410129
test ebx, ebx
je 0x410164
cmp edi, eax
jg 0x410139
jl 0x410133
cmp esi, ebx
jae 0x410139
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0047c5d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x410167
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41018a
jg 0x410171
test esi, esi
je 0x41018a
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x41018a
push eax
push esi
push 1
push edx
call fcn.00483396
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4101a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x41028b
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x41027a
jg 0x4101e0
test edx, edx
je 0x41027a
nop dword [eax]
call fcn.0040b9c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x410237
jg 0x4101f7
test esi, esi
je 0x410237
cmp ebx, eax
jg 0x410207
jl 0x410201
cmp edi, esi
jae 0x410207
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.0047c5d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x41025c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x410274
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x4101e0
jl 0x410274
test edi, edi
jne 0x4101e0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4102ad
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x4102af
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x410365
jg 0x4102ca
test esi, esi
je 0x410365
test eax, eax
jl 0x410313
jg 0x4102d4
test ebx, ebx
je 0x410313
cmp edi, eax
jg 0x4102e4
jl 0x4102de
cmp esi, ebx
jae 0x4102e4
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.0047c5d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x41031a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x410365
jg 0x410324
test esi, esi
je 0x410365
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x410365
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x410350
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.0048396b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4106e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4cd1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x410710
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004642be
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41074c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41074c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004642be
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x410835
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x410774
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4107a7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00482a5b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004642be
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x410835
cmp eax, 1
jle 0x410808
cmp eax, 3
jne 0x410835
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00482a5b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004642be
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410825
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00483396
add esp, 0x10
cmp edi, eax
jne 0x410835
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x410737
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004642be
mov esp, ebp
pop ebp
ret 4
Function at 0x410b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4cd1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x410bb3
cmp byte [esi + 0x3d], 0
je 0x410bb3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x410b69
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x410b7b
sub eax, 1
je 0x410b7f
sub eax, 2
je 0x410bb3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004642be
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410b9c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00483396
add esp, 0x10
cmp edi, eax
jne 0x410b69
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004642be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004642be
mov esp, ebp
pop ebp
ret

Function at 0x411f30
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 0x411f5b
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 0x411f44
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x414ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 0x10], edx
push ebx
mov dword [ebp - 8], eax
movzx eax, ax
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
shr esi, 8
xor eax, eax
xor edi, edi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], eax
jbe 0x414f6d
nop dword [eax + eax]
movzx ebx, word [edx + edi*2]
mov edx, ebx
movzx ecx, bl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x414f6d
movzx ecx, bl
cmp esi, ecx
jne 0x414f57
cmp eax, edx
jge 0x414f57
mov ecx, dword [ebp - 8]
movzx esi, cl
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [eax + ecx]
cmp cx, si
je 0x414f64
inc eax
cmp eax, edx
jl 0x414f43
mov esi, dword [ebp - 0xc]
inc edi
mov eax, edx
cmp edi, dword [ebp + 8]
jae 0x414f6d
mov edx, dword [ebp - 0x10]
jmp 0x414f20
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
xor eax, eax
mov bl, 1
test edi, edi
je 0x414fa7
mov esi, dword [ebp + 0x10]
nop dword [eax + eax]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x414f98
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x414f9a
mov edx, ecx
sub dword [ebp - 4], edx
js 0x414fa7
inc eax
xor bl, 1
cmp eax, edi
jb 0x414f80
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret