joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x439015
lea edi, [esi - 0x38015]
push edi
or ebp, 0xffffffff
jmp 0x454732
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454728
mov eax, 1
add ebx, ebx
jne 0x45474b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454740
jne 0x45475c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454740
xor ecx, ecx
sub eax, 3
jb 0x454770
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4547e2
mov ebp, eax
add ebx, ebx
jne 0x45477b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x454788
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4547ac
inc ecx
add ebx, ebx
jne 0x454798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45478d
jne 0x4547a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45478d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4547cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4547bd
jmp 0x45472e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4547cc
add edi, ecx
jmp 0x45472e
pop esi
mov edi, esi
mov ecx, 0x67c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4547ea
cmp byte [edi], 7
jne 0x4547ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4547ef
lea edi, [esi + 0x52000]
mov eax, dword [edi]
or eax, eax
je 0x45485e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x54000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x54050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45481c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x54058]
or eax, eax
je 0x454858
mov dword [ebx], eax
add ebx, 4
jmp 0x454839
call dword [esi + 0x54054]
mov ebp, dword [esi + 0x5405c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x548b9]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4548aa
sub esp, 0xffffff80
jmp 0x4014a0
Function at 0x10012320
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x20]
shr ebp, 3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
test ebp, ebp
je 0x100123a3
mov eax, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x24]
sub eax, esi
push edi
mov dword [esp + 0x24], eax
mov edi, dword [eax + esi]
mov ebx, dword [eax + esi + 4]
lea eax, [esp + 0x18]
push dword [esp + 0x30]
mov dword [esp + 0x1c], edi
push eax
mov dword [esp + 0x24], ebx
call dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
lea esi, [esi + 8]
xor ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esp + 0x1c]
mov edx, ebx
xor eax, dword [esp + 0x14]
mov dword [esi - 8], ecx
mov ecx, edi
mov dword [esi - 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
dec ebp
jne 0x10012351
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop ebp
add esp, 0x10
ret

Function at 0x100123b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
shr edi, 3
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
test edi, edi
je 0x10012415
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
sub ebx, esi
jmp 0x100123e0
xor eax, dword [ebx + esi]
push dword [esp + 0x28]
xor ecx, dword [ebx + esi + 4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ecx
call dword [esp + 0x38]
mov eax, dword [esp + 0x18]
lea esi, [esi + 8]
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
dec edi
jne 0x100123e0
pop esi
pop ebx
mov dword [ebp], eax
xor eax, eax
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 8
ret
Function at 0x1001bb80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x10059d10]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [esp + 0x4c]
push 0x10
lea eax, [esi + 0x10]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0x10
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
mov eax, dword [esp + 0x64]
add esp, 0x10
sub eax, 0x10
js 0x1001bcde
push ebx
push ebp
mov ebp, dword [esp + 0x58]
lea edx, [esp + 0x2c]
lea ecx, [esi + 0xf]
add eax, 0x10
sub esi, edx
mov dword [esp + 0x14], ecx
sub ebp, edx
mov dword [esp + 0x10], esi
shr eax, 4
push edi
mov dword [esp + 0x10], eax
mov edi, edi
mov bl, byte [ecx]
xor edi, edi
lea ecx, [esp + 0x30]
add ecx, edi
inc edi
add esi, ecx
mov dl, byte [ecx + ebp]
mov al, byte [ecx - 0x10]
xor al, dl
mov byte [ecx], dl
mov byte [ecx + 0x10], al
movzx eax, bl
movzx ecx, dl
xor ecx, eax
movzx eax, byte [esi]
movzx ebx, byte [ecx + str._.C]
xor ebx, eax
mov byte [esi], bl
mov esi, dword [esp + 0x14]
cmp edi, 0x10
jl 0x1001bbe4
xor al, al
xor edx, edx
lea ecx, [ecx]
xor esi, esi
jmp 0x1001bc30
movzx eax, al
movzx ecx, byte [eax + str._.C]
movzx eax, byte [esp + esi + 0x20]
xor ecx, eax
movzx eax, cl
mov byte [esp + esi + 0x20], cl
movzx ecx, byte [eax + str._.C]
movzx eax, byte [esp + esi + 0x21]
xor ecx, eax
movzx eax, cl
mov byte [esp + esi + 0x21], cl
movzx ecx, byte [eax + str._.C]
movzx eax, byte [esp + esi + 0x22]
xor ecx, eax
movzx eax, cl
mov byte [esp + esi + 0x22], cl
movzx ecx, byte [eax + str._.C]
movzx eax, byte [esp + esi + 0x23]
xor ecx, eax
movzx eax, cl
mov byte [esp + esi + 0x23], cl
movzx ecx, byte [eax + str._.C]
movzx eax, byte [esp + esi + 0x24]
xor ecx, eax
movzx eax, cl
mov byte [esp + esi + 0x24], cl
movzx ecx, byte [esp + esi + 0x25]
movzx eax, byte [eax + str._.C]
xor eax, ecx
mov byte [esp + esi + 0x25], al
add esi, 6
cmp esi, 0x30
jl 0x1001bc30
add al, dl
inc edx
cmp edx, 0x12
jl 0x1001bc20
mov esi, dword [esp + 0x14]
add ebp, 0x10
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
jne 0x1001bbe0
pop edi
pop ebp
pop ebx
push 0x10
lea eax, [esp + 0x18]
push eax
push 0x10
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_memcpy_s]
mov ecx, dword [esp + 0x54]
add esp, 0x10
xor eax, eax
pop esi
xor ecx, esp
call fcn.10043356
add esp, 0x44
ret
Function at 0x1002f580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [0x10059d10]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
push ebx
push ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
shr eax, 4
mov edx, dword [esi]
mov ebp, dword [esi + 4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x54], eax
push edi
mov edi, dword [esi + 0xc]
mov dword [esp + 0x20], edi
test eax, eax
je 0x1002f67f
mov esi, dword [esp + 0x58]
lea eax, [ecx + 8]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x14], eax
add ecx, 8
mov edi, edi
mov eax, dword [ecx - 8]
mov ebp, dword [ecx - 4]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
add ecx, 0x10
push dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], ecx
call dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esp + 0x38]
xor eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov dword [ecx - 8], eax
mov eax, dword [esp + 0x3c]
xor eax, dword [esp + 0x10]
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x40]
xor eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
xor eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
add ecx, 0x10
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edi
dec esi
jne 0x1002f5f0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
xor eax, eax
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
mov dword [esi], edx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10043356
add esp, 0x3c
ret
Function at 0x1002f6a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x10059d10]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
shr ebp, 4
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [esp + 0x40]
test ebp, ebp
je 0x1002f763
mov ebx, dword [esp + 0x3c]
add edi, 4
add ebx, 4
mov esi, eax
mov eax, dword [ebx - 4]
lea ebx, [ebx + 0x10]
push dword [esp + 0x18]
xor eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx - 0xc]
xor eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [ebx - 0x10]
xor eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx - 8]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
call dword [esp + 0x28]
mov eax, dword [esp + 0x38]
lea edi, [edi + 0x10]
mov ecx, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [edi - 0x14], ecx
mov dword [edi - 0xc], edx
mov dword [edi - 0x10], esi
mov dword [edi - 8], eax
mov dword [esp + 0x14], eax
dec ebp
jne 0x1002f6f4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10043356
add esp, 0x28
ret
Function at 0x10036af0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x10059d10]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
test edi, edi
je 0x10036c4b
lea eax, [esp + 0x10]
push eax
push 0x400
push dword [esi + 0x1c]
call fcn.10041590
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10036c31
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.MSVCR120.dll__stat64i32]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push 0x30
push eax
push esi
call fcn.10041ed0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10036c31
lea ebp, [eax + 0x30]
cmp dword [esp + 0x18], eax
jge 0x10036b7c
mov ebx, 0x2711
jmp 0x10036c31
mov esi, dword [esp + 0x60]
test esi, esi
jle 0x10036c2d
push 0x1004a0f4
push edi
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x10036c2d
mov edi, 0x400
cmp esi, edi
push eax
cmovl edi, esi
push edi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x10036c0d
push edi
push dword [esp + 0x14]
push dword [esp + 0x1c]
call fcn.10041ed0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10036c20
add ebp, dword [esp + 0x1c]
sub esi, edi
test esi, esi
jle 0x10036c0d
push dword [esp + 0x18]
mov edi, 0x400
cmp esi, edi
cmovl edi, esi
push edi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jg 0x10036bc6
push 0x400
push 0
push dword [esp + 0x18]
call sub.MSVCR120.dll_memset
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10036c45
push eax
push dword [esi + 0x1c]
call fcn.10041570
add esp, 8
mov eax, ebx
test ebp, ebp
jne 0x10036c50
mov eax, 0x2711
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10043356
add esp, 0x44
ret
Function at 0x10036ff0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
cdq
and edx, 3
push ebx
push ebp
push esi
lea ebx, [edx + eax]
mov edx, dword [esp + 0x18]
sar ebx, 2
lea ebp, [edx + 0x10]
mov dword [esp + 0x10], ebp
mov dword [edx + 4], ebx
lea ecx, [ebx + 6]
mov dword [edx], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [ebp], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp + 0xc], eax
cmp ebx, 6
jl 0x10037054
mov eax, dword [ecx + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp + 0x14], eax
cmp ebx, 8
jne 0x10037054
mov eax, dword [ecx + 0x18]
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [edx]
mov edx, ebp
mov dword [esp + 0x20], 0x1004a0f8
lea esi, [eax*4 + 4]
lea eax, [ebx*4]
mov dword [esp + 0xc], esi
sub edx, eax
add eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [eax - 4]
cmp ebx, esi
jge 0x10037199
mov esi, dword [esp + 0x1c]
push edi
lea edi, [ebx + 4]
add esi, 4
lea edi, [edx + edi*4]
sub edx, ebp
mov dword [esp + 0x20], edx
mov ebp, ebx
jmp 0x100370a0
movzx ecx, al
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
movzx ecx, cl
movzx eax, al
shl edx, 8
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [esp + 0x24]
shl edx, 8
or edx, eax
movzx eax, byte [ecx]
inc ecx
xor eax, edx
mov dword [esp + 0x24], ecx
xor eax, dword [edi - 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esi - 4], eax
xor eax, dword [ecx + esi]
mov dword [esi], eax
xor eax, dword [edi - 8]
mov dword [esi + 4], eax
xor eax, dword [edi - 4]
mov dword [esi + 8], eax
cmp ebx, 6
jl 0x1003717d
jne 0x1003711e
xor eax, dword [edi]
mov dword [esi + 0xc], eax
xor eax, dword [edi + 4]
mov dword [esi + 0x10], eax
jmp 0x1003717d
cmp ebp, 0x38
je 0x10037194
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 8
movzx eax, al
movzx ecx, cl
shl edx, 8
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ecx + str.cw]
or edx, ecx
shl edx, 8
or eax, edx
xor eax, dword [edi]
mov dword [esi + 0xc], eax
xor eax, dword [edi + 4]
mov dword [esi + 0x10], eax
xor eax, dword [edi + 8]
mov dword [esi + 0x14], eax
xor eax, dword [edi + 0xc]
mov dword [esi + 0x18], eax
lea ecx, [ebx*4]
add ebp, ebx
add esi, ecx
add edi, ecx
cmp ebp, dword [esp + 0x10]
jl 0x100370a0
mov ebp, dword [esp + 0x14]
pop edi
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp ecx, 0xe
je 0x100371cf
shl ecx, 2
mov eax, dword [ebp + ecx*4]
mov dword [ebp + 0xe0], eax
mov eax, dword [ebp + ecx*4 + 4]
mov dword [ebp + 0xe4], eax
mov eax, dword [ebp + ecx*4 + 8]
mov dword [ebp + 0xe8], eax
mov eax, dword [ebp + ecx*4 + 0xc]
mov dword [ebp + 0xec], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x1003f3e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10059d10]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
push edi
mov edi, dword [esp + 0xa0]
mov esi, 0x80
mov dword [esp + 0xc], eax
test edi, edi
jns 0x1003f423
lea edi, [esi - 0x7f]
mov ebx, 0x10050258
jmp 0x1003f428
cmp edi, esi
cmovg edi, esi
mov ecx, dword [esp + 0xa8]
mov eax, 0x400
test ecx, ecx
push ebp
cmove ecx, eax
push edi
push ebx
push edi
lea eax, [ecx + 7]
cdq
and edx, 7
lea ebp, [edx + eax]
mov eax, 0xff
sar ebp, 3
lea edx, [ebp*8]
sub ecx, edx
add ecx, 8
shl eax, cl
not eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
cmp edi, esi
jge 0x1003f4a1
mov ebx, 1
lea eax, [esp + edi + 0x17]
sub ebx, edi
sub esi, edi
movzx ecx, byte [ebx + eax]
lea edx, [eax + 1]
movzx eax, byte [eax]
add ecx, eax
and ecx, 0xff
mov al, byte [ecx + 0x10050158]
mov byte [edx], al
lea eax, [edx]
dec esi
jne 0x1003f482
lea ecx, [esp + 0x98]
mov edx, 0x7f
sub ecx, ebp
movzx eax, byte [ecx]
and eax, dword [esp + 0x14]
sub edx, ebp
mov al, byte [eax + 0x10050158]
mov byte [ecx], al
js 0x1003f4de
lea eax, [edx + ebp]
movzx ecx, byte [esp + eax + 0x18]
movzx eax, byte [esp + edx + 0x19]
xor ecx, eax
mov al, byte [ecx + 0x10050158]
mov byte [esp + edx + 0x18], al
dec edx
jns 0x1003f4c2
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
mov edi, 0x10
pop ebp
lea esi, [ebx + 8]
nop
movzx edx, byte [eax + 1]
lea esi, [esi + 0x10]
movzx ecx, byte [eax]
lea eax, [eax + 8]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 6]
mov dword [esi - 0x18], edx
movzx edx, byte [eax - 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 4]
mov dword [esi - 0x14], edx
movzx edx, byte [eax - 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 2]
mov dword [esi - 0x10], edx
movzx edx, byte [eax - 1]
shl edx, 8
or edx, ecx
mov dword [esi - 0xc], edx
dec edi
jne 0x1003f4f0
mov ecx, dword [esp + 0x94]
mov dword [ebx + 0x100], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10043356
add esp, 0x8c
ret
Function at 0x1003f7c0
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x110
mov eax, dword [0x10059d10]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 8], ebp
test ebp, ebp
je 0x1003f950
push ebx
mov ebx, dword [esp + 0x120]
mov eax, 0xff
cmp ebx, eax
push esi
push edi
mov edi, dword [esp + 0x130]
cmovg ebx, eax
test edi, edi
jg 0x1003f80e
mov edi, 0xc
jmp 0x1003f818
mov eax, 0x14
cmp edi, eax
cmovg edi, eax
lea esi, [ebx - 8]
mov dword [esp + 0x1c], 0
xor edx, edx
mov dword [ebp], edi
xor ecx, ecx
test esi, esi
js 0x1003f862
add esi, 8
shr esi, 3
lea eax, [esi*8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x12c]
mov ecx, dword [eax]
mov dword [esp + edx*4 + 0x1c], ecx
mov ecx, dword [eax + 4]
add eax, 8
mov dword [esp + edx*4 + 0x20], ecx
add edx, 2
dec esi
jne 0x1003f846
mov ecx, dword [esp + 0x10]
jmp 0x1003f869
mov eax, dword [esp + 0x12c]
mov esi, ebx
sub esi, ecx
test esi, esi
jle 0x1003f8ae
cmp esi, 4
jl 0x1003f883
mov ecx, dword [eax]
add eax, 4
mov dword [esp + edx*4 + 0x1c], ecx
inc edx
sub esi, 4
test esi, esi
jle 0x1003f8ae
movzx ebp, byte [eax]
cmp esi, 2
jl 0x1003f898
movzx ecx, byte [eax + 1]
shl ecx, 8
or ebp, ecx
cmp esi, 3
jl 0x1003f8a6
movzx eax, byte [eax + 2]
shl eax, 0x10
or ebp, eax
mov dword [esp + edx*4 + 0x1c], ebp
mov ebp, dword [esp + 0x14]
lea eax, [ebx + 3]
mov dword [ebp + 4], 0xb7e15163
cdq
lea esi, [edi*2 + 2]
and edx, 3
mov ecx, 1
add edx, eax
sar edx, 2
mov dword [esp + 0x18], edx
cmp esi, ecx
jle 0x1003f8f2
jmp 0x1003f8e0
mov eax, dword [ebp + ecx*4]
sub eax, 0x61c88647
mov dword [ebp + ecx*4 + 4], eax
inc ecx
cmp ecx, esi
jl 0x1003f8e0
cmp esi, edx
mov eax, edx
cmovg eax, esi
xor edi, edi
xor ebx, ebx
xor edx, edx
lea ecx, [eax + eax*2]
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
jle 0x1003f94d
add edx, eax
add edx, dword [ebp + ebx*4 + 4]
rol edx, 3
mov dword [ebp + ebx*4 + 4], edx
inc ebx
lea ecx, [eax + edx]
mov eax, dword [esp + edi*4 + 0x1c]
add eax, dword [esp + 0x14]
and ecx, 0x1f
add eax, edx
rol eax, cl
xor ecx, ecx
cmp ebx, esi
mov dword [esp + edi*4 + 0x1c], eax
mov dword [esp + 0x14], eax
cmovge ebx, ecx
inc edi
cmp edi, dword [esp + 0x18]
cmovge edi, ecx
dec dword [esp + 0x10]
jne 0x1003f910
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor eax, eax
pop ebp
xor ecx, esp
call fcn.10043356
add esp, 0x110
ret
Function at 0x1003fa10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, esp
and esp, 0xfffffff0
sub esp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp], 0xc0d0e0f
mov dword [esp + 4], 0x8090a0b
mov dword [esp + 8], 0x4050607
mov dword [esp + 0xc], 0x10203
movdqu xmm0, xmmword [esi]
movdqu xmm1, xmmword [ecx]
pshufb xmm0, xmmword [esp]
movdqu xmm4, xmmword [edi]
pshufb xmm4, xmmword [esp]
pxor xmm0, xmm4
add edi, 0x10
pshufd xmm7, xmm0, 0x4e
pxor xmm7, xmm0
movdqa xmm2, xmm0
pshufd xmm6, xmm1, 0x4e
pxor xmm6, xmm1
movdqa xmm3, xmm0
pclmulqdq xmm2, xmm1, 0
pclmulqdq xmm3, xmm1, 0x11
pclmulqdq xmm7, xmm6, 0
pxor xmm7, xmm2
pxor xmm7, xmm3
movdqa xmm6, xmm7
psrldq xmm7, 8
pxor xmm3, xmm7
pslldq xmm6, 8
pxor xmm2, xmm6
movdqa xmm6, xmm2
psrld xmm6, 0x1f
movdqa xmm7, xmm3
psrld xmm7, 0x1f
pslld xmm2, 1
pslld xmm3, 1
movdqa xmm5, xmm6
psrldq xmm5, 0xc
pslldq xmm6, 4
pslldq xmm7, 4
por xmm2, xmm6
por xmm3, xmm7
por xmm3, xmm5
movdqa xmm5, xmm2
pslld xmm5, 0x1f
movdqa xmm7, xmm2
pslld xmm7, 0x1e
pxor xmm5, xmm7
movdqa xmm7, xmm2
pslld xmm7, 0x19
pxor xmm5, xmm7
movdqa xmm7, xmm5
psrldq xmm7, 4
pslldq xmm5, 0xc
pxor xmm2, xmm5
pxor xmm3, xmm2
movdqa xmm0, xmm2
psrld xmm0, 1
pxor xmm0, xmm3
movdqa xmm5, xmm2
psrld xmm5, 2
pxor xmm0, xmm5
psrld xmm2, 7
pxor xmm0, xmm2
pxor xmm0, xmm7
sub eax, 0x10
jg 0x1003fa5b
pshufb xmm0, xmmword [esp]
movdqu xmmword [esi], xmm0
mov esp, dword [esp + 0x10]
mov esi, dword [esp]
mov edi, dword [esp + 4]
add esp, 8
ret
Function at 0x402cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x402cef
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x402f00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4050a0]
mov edx, dword [0x4050a4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
push dword [ebp + 8]
push dword [0x405580]
call fcn.00403402
mov dword [ebp - 0xc], eax
or eax, eax
je 0x402f7a
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
call sub.KERNEL32.dll_GetFileSize
push 0
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
pop eax
pop edx
pop ecx
or eax, ecx
pop ecx
or edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x402f7a
cmp dword [ecx + 0x14], 0
jne 0x402f7a
mov edi, ecx
mov esi, dword [edi + 8]
sub esi, dword [edi + 0xc]
add eax, esi
adc edx, 0
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x4030f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push esi
push edi
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push dword [ebp + 8]
push dword [0x405580]
call fcn.00403402
mov edi, eax
or eax, eax
je 0x403187
mov eax, dword [ebp + 0xc]
or eax, eax
je 0x403155
cmp byte [eax], 0
je 0x403155
cmp dword [edi + 4], 0
je 0x40313b
push eax
call sub.CRTDLL.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call fcn.004032a0
mov dword [ebp - 4], eax
jmp 0x403155
push dword [ebp + 0xc]
call sub.CRTDLL.dll_strlen
pop ecx
push 0
lea esi, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
cmp dword [edi + 4], 0
je 0x40316d
push 2
push 0x4050b0
push edi
call fcn.004032a0
mov dword [ebp - 8], eax
jmp 0x403181
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4050b0
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8