joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ff134
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x5ff17b
dec eax
je 0x5ff14d
dec eax
je 0x5ff17b
jmp 0x5ff16a
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5ff17b
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5ff171
mov eax, 0x80004005
jmp 0x5ff17d
mov eax, dword [esi + 0x1c]
add dword [esi + 0x20], eax
and dword [esi + 0x1c], 0
xor eax, eax
pop esi
leave
ret

Function at 0x6045c9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x6046ec
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x6046d0
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x604622
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x604600
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x6049c0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x6c]
imul ebx, dword [esi + 0x60]
push edi
mov edi, dword [esi + 0x20]
add ebx, edi
cmp edi, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
jae 0x604aed
mov eax, 0xf81f
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [edi + esi*2]
add edx, edi
cmp edi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], esi
jae 0x604ace
movzx ecx, word [edi + 2]
movzx esi, word [edx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [edx]
movzx edx, word [edi]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff07e0
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x1002]
mov ebx, edx
and ebx, 0xffff07e0
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff07e0
add ebx, ecx
mov ecx, esi
and ecx, 0xffff07e0
lea ecx, [ebx + ecx + 0x40]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
lea ecx, [edx + esi + 0x1002]
mov edx, dword [ebp - 0x10]
and edi, 0xffff07e0
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0xc]
add edi, 4
add edx, 4
cmp edi, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
jb 0x604a19
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea edi, [edi + edx*2]
cmp edi, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
jb 0x6049fa
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x604c03
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ecx + 4]
push esi
mov esi, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x6c]
imul eax, dword [ecx + 0x60]
push edi
mov edi, dword [ecx + 0x20]
add eax, edi
cmp edi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], eax
jae 0x604d26
mov eax, 0x83e0
mov edx, 0x7c1f
push ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x68]
lea ecx, [edi + ecx*2]
add esi, edi
cmp edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], ecx
jae 0x604d02
movzx ecx, word [esi + 2]
mov dword [ebp - 8], ecx
movzx ecx, word [edi + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [esi]
movzx esi, word [edi]
mov ebx, ecx
and ebx, eax
mov edi, esi
and edi, eax
add edi, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
add edi, ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
and ecx, edx
and ebx, eax
lea edi, [edi + ebx + 0x10040]
mov ebx, esi
and ebx, edx
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 8]
and ecx, edx
lea ecx, [ebx + ecx + 0x802]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x20]
and ecx, eax
and esi, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 8]
and di, dx
and ecx, eax
lea ecx, [esi + ecx + 0x10040]
mov esi, dword [ebp - 0x14]
shr ecx, 2
add esi, 4
mov dword [ebp - 0x14], esi
xor edi, ecx
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0xc], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add edi, 4
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0x10], edi
jb 0x604c5f
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 0x18]
add esi, dword [ebx + 0x60]
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x60]
lea edi, [edi + ebx*2]
cmp edi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
jb 0x604c40
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x604d31
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x6c]
imul ebx, dword [esi + 0x60]
push edi
mov edi, dword [esi + 0x20]
add ebx, edi
cmp edi, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
jae 0x604e61
mov eax, 0xf0f0
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [edi + esi*2]
add edx, edi
cmp edi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], esi
jae 0x604e42
movzx ecx, word [edi + 2]
movzx esi, word [edx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [edx]
movzx edx, word [edi]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff0f0f
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x2020]
mov ebx, edx
and ebx, 0xffff0f0f
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff0f0f
add ebx, ecx
mov ecx, esi
and ecx, 0xffff0f0f
lea ecx, [ebx + ecx + 0x202]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
lea ecx, [edx + esi + 0x2020]
mov edx, dword [ebp - 0x10]
and edi, 0xffff0f0f
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0xc]
add edi, 4
add edx, 4
cmp edi, dword [ebp - 0x20]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
jb 0x604d8a
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea edi, [edi + edx*2]
cmp edi, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
jb 0x604d6b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x604e6d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x20]
push edi
mov edi, dword [edx + 0x6c]
imul edi, dword [edx + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x604f85
push esi
mov esi, 0xe3
mov eax, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
add edx, ebx
add eax, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], edx
jae 0x604f65
movzx ecx, byte [ebx + 1]
movzx edi, byte [eax + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [eax]
movzx eax, byte [ebx]
mov ebx, ecx
and bx, si
mov edx, eax
and dx, si
mov dword [ebp - 0x1c], ecx
and ecx, 0x1c
add edx, ebx
mov ebx, dword [ebp - 4]
and bx, si
add edx, ebx
mov ebx, edi
and bx, si
lea edx, [edx + ebx + 0x42]
mov ebx, eax
and ebx, 0x1c
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0x1c
add ebx, ecx
mov ecx, edi
and ecx, 0x1c
lea ecx, [ebx + ecx + 8]
shr ecx, 2
shr edx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
and ax, si
mov ebx, dword [ebp - 0xc]
and cx, si
and di, si
and dl, 0x1c
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x42]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
inc ebx
inc ebx
inc eax
inc eax
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
jb 0x604ec5
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov edx, dword [eax]
mov eax, dword [edx + 0x60]
lea ebx, [ebx + eax*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x604ea7
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x605021
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x605148
mov eax, 0xff1c
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x605129
movzx ecx, word [ebx + 2]
movzx esi, word [ebx]
movzx edi, word [edx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [edx]
mov dword [ebp - 0xc], ecx
mov ebx, esi
mov edx, 0xe3
and cx, dx
and bx, dx
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, dx
add ebx, ecx
mov ecx, edi
and cx, dx
lea edx, [ebx + ecx + 0x42]
mov ebx, dword [ebp - 0xc]
and bx, ax
mov ecx, esi
and cx, ax
shr edx, 2
and esi, eax
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x208]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00e3
lea ecx, [esi + edi + 0x208]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x60507a
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x60505b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x605262
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x605389
mov eax, 0xff00
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x60536a
movzx ecx, word [ebx + 2]
movzx esi, word [ebx]
movzx edi, word [edx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [edx]
mov dword [ebp - 0xc], ecx
mov ebx, esi
mov edx, 0xff
and cx, dx
and bx, dx
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, dx
add ebx, ecx
mov ecx, edi
and cx, dx
lea edx, [ebx + ecx + 2]
mov ebx, dword [ebp - 0xc]
and bx, ax
mov ecx, esi
and cx, ax
shr edx, 2
and esi, eax
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00ff
lea ecx, [esi + edi + 0x200]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x6052bb
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x60529c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x605395
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x20]
push edi
mov edi, dword [edx + 0x6c]
imul edi, dword [edx + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x6054ad
push esi
mov esi, pe_nt_image_headers32
mov eax, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
add edx, ebx
add eax, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], edx
jae 0x60548d
movzx ecx, byte [ebx + 1]
movzx edi, byte [eax + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [eax]
movzx eax, byte [ebx]
mov ebx, ecx
and bx, si
mov edx, eax
and dx, si
mov dword [ebp - 0x1c], ecx
and ecx, 0xf
add edx, ebx
mov ebx, dword [ebp - 4]
and bx, si
add edx, ebx
mov ebx, edi
and bx, si
lea edx, [edx + ebx + 0x20]
mov ebx, eax
and ebx, 0xf
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xf
add ebx, ecx
mov ecx, edi
and ecx, 0xf
lea ecx, [ebx + ecx + 2]
shr ecx, 2
shr edx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
and ax, si
mov ebx, dword [ebp - 0xc]
and cx, si
and di, si
and dl, 0xf
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
inc ebx
inc ebx
inc eax
inc eax
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
jb 0x6053ed
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov edx, dword [eax]
mov eax, dword [edx + 0x60]
lea ebx, [ebx + eax*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x6053cf
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x616064
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [ecx + 4]
test esi, esi
je 0x616085
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
add eax, esi
jmp 0x616087
xor eax, eax
mov dword [edx], eax
movzx eax, word [ecx + 8]
mov dword [edx + 4], eax
movzx eax, word [ecx + 0xa]
mov dword [edx + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 2]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 4]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 6]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 0xa]
mov dword [edx + 0x24], eax
mov eax, dword [edx + 0x20]
imul eax, dword [edx + 0x18]
imul eax, dword [edx + 0x1c]
shl eax, 2
mov dword [edx + 0x28], eax
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x6160fa
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
add eax, esi
jmp 0x6160fc
xor eax, eax
pop edi
mov dword [edx + 0x2c], eax
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x63ad29
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
push edi
mov ebx, ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
add eax, dword [ecx]
mov ecx, dword [edi + 4]
mov dword [ebp - 8], eax
xor eax, eax
test byte [ebx + 0x138], 1
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ecx
jne 0x63ad91
cmp dword [ebp + 0x10], eax
je 0x63ad91
push eax
push eax
call sub.msvcrt.dll__controlfp
push 0x30000
push 0
mov dword [ebx + 0x134], eax
call sub.msvcrt.dll__controlfp
add esp, 0x10
or dword [ebx + 0x138], 1
xor edx, edx
cmp dword [esi + 0x38], edx
je 0x63ae70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x18]
add ecx, eax
cmp word [esi + 0x4a], dx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], edx
jbe 0x63ae5f
movzx eax, word [ebp + 0xc]
imul eax, eax, 0x18
add eax, dword [esi + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov edx, dword [edx]
cmp edx, dword [ebx + 0x38]
jbe 0x63ae4c
mov eax, dword [eax + 8]
movzx edx, word [eax + 4]
sub edx, 0
je 0x63ae2a
dec edx
je 0x63ae13
dec edx
jne 0x63ae4c
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
movzx eax, word [eax + 6]
shl eax, 5
add eax, dword [ebp - 0xc]
push dword [esi + 0x38]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0063a476
jmp 0x63ae4c
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
movzx eax, word [eax + 6]
shl eax, 5
add eax, dword [ebp - 0x10]
jmp 0x63ae04
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
push dword [esi + 0x38]
movzx eax, word [eax + 6]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*8]
push eax
push ecx
mov ecx, ebx
call fcn.0063a7ff
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [esi + 0x4a]
jb 0x63adc6
xor edx, edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
push dword [ebp - 4]
push dword [ebp - 4]
push edx
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push dword [ebp - 8]
push dword [ebp - 8]
push edx
push dword [ebp - 0xc]
push eax
push dword [esi + 0x40]
push dword [esi + 0x3c]
call fcn.0061c1ea
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6ab32d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x6ab378
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
sub esi, edi
cmp esi, 0x400000
jbe 0x6ab352
mov esi, 0x400000
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push esi
add eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6ab380
cmp dword [ebp - 4], esi
jne 0x6ab385
add edi, esi
cmp edi, dword [ebp + 0x10]
jne 0x6ab33c
xor eax, eax
pop edi
pop esi
leave
ret 0xc
call fcn.006ab2f2
mov eax, 0x80004005
jmp 0x6ab37a

Function at 0x6ab391
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x6ab3e2
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
sub esi, edi
cmp esi, 0x400000
jbe 0x6ab3b6
mov esi, 0x400000
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push esi
add eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6ab3ea
cmp dword [ebp - 4], 0
je 0x6ab3ef
cmp dword [ebp - 4], esi
jne 0x6ab3ef
add edi, esi
cmp edi, dword [ebp + 0x10]
jne 0x6ab3a0
xor eax, eax
pop edi
pop esi
leave
ret 0xc
call fcn.006ab2f2
mov eax, 0x80004005
jmp 0x6ab3e4
Function at 0x6ab60f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x6ab72e
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x6ab72e
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x6ab661
call fcn.006ab2f2
mov eax, 0x80004005
jmp 0x6ab733
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x6ab6ac
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6ab722
cmp dword [ebp + 0xc], edi
jne 0x6ab727
add ebx, edi
cmp ebx, 0x18
jne 0x6ab698
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x6ab708
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.006ab32d
mov edi, eax
test edi, edi
jl 0x6ab708
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x6ab71d
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x6ab733
call fcn.006ab2f2
mov edi, 0x80004005
jmp 0x6ab708
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8