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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
mov eax, dword [ecx + 0x38]
or eax, dword [ecx + 0x3c]
je 0x64db17
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x10]
xor edx, edx
mov eax, esi
add eax, dword [ecx + 0x30]
adc edx, dword [ecx + 0x34]
cmp edx, 0x20000000
ja 0x64dc33
jb 0x64db3b
test eax, eax
jne 0x64dc33
push ebx
mov ebx, dword [ecx + 0x16c]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x64db85
test esi, esi
je 0x64db6a
mov al, byte [edi]
dec esi
xor byte [ebx + ecx + 0x40], al
inc edi
inc ebx
and ebx, 0xf
mov dword [ebp - 8], ebx
jne 0x64db53
jmp 0x64db72
test ebx, ebx
jne 0x64dc21
lea eax, [ecx + 0x60]
push eax
lea eax, [ecx + 0x40]
push eax
call fcn.0064ec00
mov ecx, dword [ebp + 8]
add esp, 8
cmp esi, 0x10
jb 0x64dbf4
lea eax, [ecx + 0x60]
mov dword [ebp - 0xc], eax
lea edx, [ecx + 0x41]
lea eax, [ecx + 0x40]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, esi
shr eax, 4
mov dword [ebp - 4], eax
mov eax, edx
mov ebx, 4
lea edx, [edi + 1]
mov edi, edi
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
dec ebx
jne 0x64dbb0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0064ec00
mov edx, dword [ebp - 0x14]
add esp, 8
add edi, 0x10
sub esi, 0x10
dec dword [ebp - 4]
jne 0x64dba4
mov ebx, dword [ebp - 8]
mov edx, dword [ebp + 8]
test esi, esi
je 0x64dc0f
xor ecx, ecx
mov ebx, esi
test esi, esi
je 0x64dc0f
mov al, byte [ecx + edi]
xor byte [edx + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x64dc03
pop edi
mov dword [edx + 0x16c], ebx
mov eax, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ecx + 0x16c], ebx
mov eax, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x64f420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x18]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0x10
jb 0x64f49a
mov eax, esi
shr eax, 4
mov dword [ebp - 8], eax
sub edx, ebx
mov eax, edi
sub eax, ebx
mov ecx, ebx
mov dword [ebp - 0xc], eax
mov ebx, 4
mov esi, eax
lea esp, [esp]
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [esi + ecx - 4], eax
dec ebx
jne 0x64f460
push dword [ebp + 0x14]
push edi
push edi
call dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov edx, edi
mov ebx, dword [ebp - 4]
sub esi, 0x10
add ebx, 0x10
mov dword [ebp + 0x10], esi
add esp, 0xc
mov dword [ebp - 4], ebx
add edi, 0x10
dec dword [ebp - 8]
jne 0x64f447
mov ecx, dword [ebp + 0x18]
test esi, esi
je 0x64f5aa
mov ecx, edx
xor eax, eax
sub ecx, ebx
mov dword [ebp - 0xc], ecx
mov ecx, edi
sub ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, 1
sub ecx, ebx
mov dword [ebp - 0x14], ecx
mov ecx, 2
sub ecx, ebx
mov dword [ebp - 0x18], ecx
mov ecx, 3
sub ecx, ebx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0xc]
cmp eax, esi
jae 0x64f54f
mov esi, dword [ebp - 0x10]
add ebx, eax
mov cl, byte [ecx + ebx]
xor cl, byte [ebx]
mov byte [esi + ebx], cl
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
add ecx, ebx
cmp ecx, esi
jae 0x64f54e
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 8], ecx
mov cl, byte [ecx + eax - 1]
xor cl, byte [eax + edx + 1]
mov byte [edi + eax + 1], cl
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp ecx, esi
jae 0x64f549
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax]
xor cl, byte [eax + edx + 2]
mov byte [edi + eax + 2], cl
mov ecx, dword [ebp - 0x1c]
add ecx, ebx
cmp ecx, esi
jae 0x64f544
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov cl, byte [ecx + eax + 1]
xor cl, byte [eax + edx + 3]
mov byte [edi + eax + 3], cl
add eax, 4
mov ecx, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x64f4d3
jmp 0x64f56c
add eax, 3
jmp 0x64f54f
add eax, 2
jmp 0x64f54f
inc eax
cmp eax, 0x10
jae 0x64f56c
mov ebx, 0x10
lea ecx, [eax + edi]
sub edx, edi
sub ebx, eax
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec ebx
jne 0x64f560
push dword [ebp + 0x14]
push edi
push edi
call dword [ebp + 0x1c]
add esp, 0xc
mov edx, edi
cmp esi, 0x10
jbe 0x64f598
mov ebx, dword [ebp - 4]
sub esi, 0x10
add ebx, 0x10
mov dword [ebp + 0x10], esi
add edi, 0x10
mov dword [ebp - 4], ebx
test esi, esi
jne 0x64f4a2
mov eax, dword [ebp + 0x18]
movdqu xmm0, xmmword [edx]
pop edi
pop esi
movdqu xmmword [eax], xmm0
pop ebx
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [edx]
pop edi
pop esi
movdqu xmmword [ecx], xmm0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x64f5c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov esi, dword [esi]
test esi, esi
je 0x64f5f8
mov edx, dword [ebp + 0x18]
test edi, edi
je 0x64f5f8
mov al, byte [esi + edx]
dec edi
xor al, byte [ecx]
inc esi
mov byte [ebx], al
inc ecx
inc ebx
mov dword [ebp + 0x10], ecx
and esi, 0xf
jne 0x64f5e1
cmp edi, 0x10
jb 0x64f674
mov edx, dword [ebp + 0x18]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 4], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 8], eax
shl eax, 4
add ebx, eax
add ecx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 0x10], ecx
jmp 0x64f62b
mov edx, dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push edx
call dword [ebp + 0x20]
add esp, 0xc
cmp esi, 0x10
jae 0x64f660
mov eax, dword [ebp + 0x18]
mov edx, 0xf
sub edx, esi
add eax, esi
mov esi, dword [ebp - 4]
shr edx, 2
inc edx
mov edi, edi
mov ecx, dword [esi + eax]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
dec edx
jne 0x64f650
add dword [ebp - 4], 0x10
sub edi, 0x10
add ebx, 0x10
xor esi, esi
dec dword [ebp - 8]
jne 0x64f628
mov ebx, dword [ebp - 0x10]
test edi, edi
je 0x64f6a5
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push eax
push eax
call dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 0x10]
sub ebx, eax
sub edx, eax
lea ecx, [esi + eax]
add esi, edi
mov al, byte [ecx + edx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
dec edi
jne 0x64f695
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x650720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0xa470b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
mov edx, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0xa0], eax
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x84]
neg eax
mov dword [ebp - 0x88], ebx
push edi
mov edi, dword [ebp + 0xc]
and eax, 0x3f
add ecx, eax
sub edx, edi
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x94], ecx
lea eax, [edi + 0x100]
cmp esi, eax
jbe 0x65078b
mov ebx, esi
sub ebx, edi
sub ebx, 0x100
mov dword [ebp - 0x88], ebx
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, edx
xor edx, edx
div edi
push edi
mov esi, edx
push 0
push ecx
mov dword [ebp - 0x9c], esi
call fcn.00655430
add esp, 0xc
mov dword [ebp - 0x8c], 0
cmp ebx, dword [ebp + 0x18]
jae 0x6508a3
mov eax, dword [ebp - 0x90]
mov ecx, eax
mov esi, dword [ebp - 0x88]
sar ecx, 0x1f
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp + 0x14]
mov edx, ecx
sar edx, 0x1f
mov ebx, ecx
mov dword [ebp - 0x98], edx
sub ebx, eax
mov eax, dword [ebp + 0x10]
mov edx, esi
sub edx, ecx
mov dword [ebp - 0xa4], ebx
add eax, ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0xa8], eax
jmp 0x650810
add ebx, edx
mov edi, dword [ebp - 0x8c]
sar edx, 0x1f
mov ecx, esi
sar ecx, 0x1f
inc esi
xor dl, cl
sar ebx, 0x1f
xor bl, cl
mov al, cl
xor al, byte [ebp - 0x90]
or bl, al
mov al, cl
xor al, byte [ebp - 0x98]
xor bl, cl
or dl, al
not bl
mov eax, dword [ebp - 0x88]
xor dl, cl
mov ecx, dword [ebp - 0xa8]
not dl
not dl
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x94]
and dl, al
and dl, bl
mov ebx, dword [ebp - 0xa4]
or byte [ecx + edi], dl
mov edx, edi
mov edi, dword [ebp + 0xc]
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edx
or ecx, eax
xor ecx, edx
sar ecx, 0x1f
and edx, ecx
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 0x88]
inc edx
mov dword [ebp - 0x88], edx
cmp esi, dword [ebp + 0x18]
jb 0x650810
mov esi, dword [ebp - 0x9c]
xor edx, edx
test edi, edi
je 0x6508de
mov ebx, dword [ebp - 0xa0]
nop
mov ecx, dword [ebp - 0x94]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ecx]
movzx eax, byte [esi + ecx]
inc esi
mov byte [ebx + edx], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, esi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
sar ecx, 0x1f
and esi, ecx
cmp edx, edi
jb 0x6508b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00654228
mov esp, ebp
pop ebp
ret
Function at 0x651020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
sub esp, 8
inc edx
push ebx
mov ebx, dword [ebp + 0x10]
cmp edx, ebx
jbe 0x651039
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec eax
add eax, ebx
mov dword [ebp + 0x18], eax
push esi
movzx ecx, byte [eax]
mov dword [ebp - 4], ecx
lea eax, [ecx + edx]
mov edx, ebx
sub edx, eax
xor eax, ebx
xor edx, ebx
or edx, eax
mov eax, 0x100
xor edx, ebx
sar edx, 0x1f
cmp ebx, eax
not edx
cmovb eax, ebx
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
je 0x6510ac
mov ebx, ecx
push edi
sar ebx, 0x1f
mov edi, ecx
mov ecx, edi
mov eax, esi
sar ecx, 0x1f
inc esi
xor cl, bl
sar eax, 0x1f
xor al, bl
dec edi
or cl, al
mov eax, dword [ebp + 0x18]
dec dword [ebp + 0x18]
xor cl, bl
not cl
movzx ecx, cl
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and ecx, eax
not ecx
and edx, ecx
cmp esi, dword [ebp - 8]
jb 0x651078
mov ebx, dword [ebp + 0x10]
pop edi
mov eax, dword [ebp - 4]
not edx
and edx, 0xff
inc eax
pop esi
lea ecx, [edx - 1]
not edx
sar ecx, 0x1f
sar edx, 0x1f
and ecx, edx
and eax, ecx
sub ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, ecx
and eax, 1
not ecx
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x670980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x670a82
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x670a82
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x670a82
mov edx, dword [esi + 0x18]
cmp edx, 2
je 0x670a82
cmp edx, 1
jne 0x6709ca
cmp dword [esi + 4], 0x2a
jne 0x670a82
test edx, edx
je 0x6709e3
push edi
push ebx
push dword [eax + 0x30]
call fcn.0040b110
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ecx + 0x30], eax
mov ecx, edi
cmp edi, 3
jb 0x670a7b
mov eax, dword [esi + 0x2c]
cmp edi, eax
jbe 0x6709fc
mov ecx, eax
sub edi, ecx
mov dword [ebp + 0x10], ecx
add ebx, edi
push ecx
push ebx
push dword [esi + 0x38]
call fcn.00654750
mov eax, dword [esi + 0x38]
add esp, 0xc
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x470], edi
mov dword [esi + 0x460], edi
movzx edx, byte [eax]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
lea eax, [edi - 3]
and edx, dword [esi + 0x54]
xor ebx, ebx
mov dword [esi + 0x48], edx
mov dword [ebp + 8], eax
lea ebx, [ebx]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x34]
and edx, ebx
movzx edi, byte [eax + ebx + 2]
mov eax, dword [esi + 0x48]
shl eax, cl
mov ecx, dword [esi + 0x40]
xor edi, eax
and edi, dword [esi + 0x54]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], edi
mov ax, word [eax + edi*2]
mov word [ecx + edx*2], ax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2], bx
inc ebx
cmp ebx, dword [ebp + 8]
jbe 0x670a40
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
pop ebp
ret
Function at 0x670b50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 0x38]
mov edi, 0x1505
add eax, dword [ebp + 0xc]
cmp esi, 0x102
jae 0x670c6d
test esi, esi
je 0x670c6d
xor edx, edx
test esi, esi
je 0x670b99
mov ebx, eax
movzx ecx, byte [edx + ebx]
mov eax, edi
shl eax, 5
inc edx
add edi, eax
add edi, ecx
cmp edx, esi
jb 0x670b84
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
and edi, 0xff
mov edx, dword [ebx + edi*4 + 0x60]
mov dword [ebx + edi*4 + 0x60], eax
mov dword [ebp + 0x10], edx
mov dword [ebx + 0x474], 0
test edx, edx
je 0x670c6d
mov ecx, eax
sub ecx, edx
cmp ecx, esi
jbe 0x670c6d
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
cmp ecx, eax
jae 0x670c6d
cmp esi, dword [ebx + 0x478]
ja 0x670c6d
xor edi, edi
test esi, esi
je 0x670c37
mov eax, dword [ebx + 0x38]
mov ebx, edx
mov ecx, dword [ebp + 0xc]
add ecx, eax
sub eax, ecx
add eax, edx
sub ecx, edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add ecx, ebx
mov al, byte [ecx]
cmp al, byte [ecx + edx]
jne 0x670c6d
mov eax, dword [ebp + 8]
mov edx, ebx
shr edx, 3
mov cl, bl
and cl, 7
mov eax, dword [eax + 0x5c]
mov al, byte [edx + eax]
shr al, cl
test al, 1
je 0x670c6d
mov ecx, dword [ebp - 4]
inc edi
inc ebx
cmp edi, esi
jb 0x670c03
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x38]
lea ecx, [edx + esi]
cmp byte [ecx + eax - 1], 0x3b
je 0x670c5e
mov eax, dword [ebx + 0x5c]
lea ecx, [edx + esi]
mov edx, ecx
and cl, 7
shr edx, 3
mov al, byte [edx + eax]
shr al, cl
test al, 1
jne 0x670c6d
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
mov dword [ebx + 0x474], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4012a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403df4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403df0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403df0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403df8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40136d
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401354
mov eax, dword [0x403df4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x298068a3
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x298529aa
call fcn.29802379
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x298069b3
cmp byte [edi + 0x3d], bl
je 0x298069b3
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x298583e0]
mov ecx, edi
call esi
cmp eax, 0xffffffff
jne 0x298068e4
xor al, al
jmp 0x298069b5
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2980706a
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x38]
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x2980693d
sub eax, 1
je 0x29806940
dec eax
sub eax, 1
jne 0x298069a0
inc eax
jmp 0x2980699e
mov byte [edi + 0x3d], bl
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x2c]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x30], edx
je 0x2980697c
push dword [edi + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x30]
add esp, 0x10
cmp edx, eax
jne 0x2980699c
mov esi, dword [ebp - 0x14]
cmp byte [edi + 0x3d], 0
je 0x2980699a
test edx, edx
jne 0x29806902
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x298068ff
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.29842e64
mov al, bl
jmp 0x298069b5
mov al, 1
call fcn.29802cf8
ret
Function at 0x298076c0
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x29852b5e
call fcn.29802379
mov ebx, ecx
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x298076dd
xor eax, eax
jmp 0x29807843
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x29807711
mov eax, dword [ebx + 0x30]
mov ecx, ebx
mov edx, dword [ebx + 0x20]
mov esi, dword [eax]
add esi, dword [edx]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x29807711
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov ecx, dword [ebp + 8]
mov byte [eax], cl
mov eax, ecx
jmp 0x29807843
cmp dword [ebx + 0x4c], 0
je 0x29807841
mov ecx, ebx
call fcn.29806d41
xor ecx, ecx
cmp dword [ebx + 0x38], ecx
jne 0x29807745
push dword [ebx + 0x4c]
mov ebx, dword [ebp + 8]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x29807841
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.2980706a
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp esi, 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x29807832
cmp eax, 1
jg 0x29807817
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edx, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x298077e8
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [ebp - 0x34]
add esp, 0x10
cmp edx, eax
jne 0x29807832
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x29]
mov byte [ebx + 0x3d], 1
cmp dword [ebp - 0x38], eax
jne 0x29807812
test edx, edx
jne 0x2980776a
cmp dword [ebp - 0x18], 0x20
jae 0x29807832
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.29806fa0
jmp 0x29807767
mov edi, dword [ebp + 8]
jmp 0x29807832
cmp eax, 3
jne 0x29807832
push dword [ebx + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
cmovne edi, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.29842e64
mov eax, edi
call fcn.29802cf8
ret 4
Function at 0x29842e64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x29842e73
pop dword [ebp - 0x30]
mov eax, 0xab22f610
add eax, 0x7e613863
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x95483009
add dword [ebp - 0x40], 0xb90a1542
mov dword [ebp - 0x3c], 0xe67ce659
sub dword [ebp - 0x3c], 0xb4499a14
mov dword [ebp - 0x38], 0x44c2b329
sub dword [ebp - 0x38], 0xf8766efb
mov dword [ebp - 0x34], 0xd6ac458e
add dword [ebp - 0x34], 0x2953ba72
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x1b4c3fe3
sub dword [ebp - 0x40], 0xa6d9d68d
mov dword [ebp - 0x3c], 0x55dc1b41
add dword [ebp - 0x3c], 0xeb904634
mov dword [ebp - 0x38], 0xb47f48e1
sub dword [ebp - 0x38], 0x510fdc75
mov dword [ebp - 0x34], 0x699e327a
sub dword [ebp - 0x34], 0x699e327a
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x43ad4
push 0
call eax
mov ecx, 0xd4a42ad0
add ecx, 0x2b5c0c4f
xor edx, edx
add edx, eax
mov ebx, 0xaf670aa8
add ebx, 0x7a227b58
add ebx, dword [ebp - 0x30]
mov edi, 0xe88a7132
add dword [ebp - 0x1c], ecx
mov esi, dword [ebx]
add dword [ebp - 0x2c], ebx
sub esi, edi
xor dword [ebp - 0x2c], 0x9fe97102
mov dword [edx], esi
mov dword [ebp - 0x18], 0xf416d85c
add edx, 0xe448213f
sub edx, 0xe448213b
add ebx, 4
loop 0x29842f87
add eax, 0x1226a839
add eax, 0xedda2716
xor ebx, ebx
add ebx, eax
add eax, 0xab9e9beb
add eax, 0x5461641a
mov ecx, 0xa8b341ad
sub ecx, 0x7f3341ad
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx