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

Disassembly:
xor ax, ax
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
push ebp
test esi, esi
je 0x46c2c7
mov edi, dword [esp + 0x14]
mov cl, byte [edi]
xor ebp, ebp
mov bp, ax
mov dl, cl
shr ax, 4
and ebp, 0xf
and dl, 0xf
xor ebx, ebx
mov bl, dl
and cl, 0xf3
shr cl, 2
inc edi
mov edx, dword [ebx*4 + 0x488978]
xor ebx, ebx
xor dx, ax
xor eax, eax
xor dx, word [ebp*4 + 0x488978]
mov al, cl
mov bx, dx
mov eax, dword [eax + 0x488978]
shr dx, 4
and ebx, 0xf
xor ax, dx
xor ax, word [ebx*4 + 0x488978]
dec esi
jne 0x46c273
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46c3d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov eax, 0xffffffff
mov edx, dword [esp + 0xc]
push esi
push edi
xor edi, edi
cmp edx, edi
je 0x46c406
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov bl, byte [edi + ecx]
inc edi
xor ebx, eax
shr eax, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x488a38]
xor esi, eax
cmp edx, edi
mov eax, esi
ja 0x46c3e6
not eax
pop edi
pop esi
pop ebx
ret

Function at 0x46c420
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push ebx
mov dword [eax], 0
cmp dword [esp + 0x1c], 1
push esi
push edi
push ebp
jae 0x46c442
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
xor edi, edi
mov ebp, dword [esp + 0x28]
cmp ebp, edi
je 0x46c540
lea eax, [edi*4]
mov ecx, 3
sub edx, edx
xor ebx, ebx
div ecx
mov edx, dword [esp + 0x1c]
lea esi, [edx + eax]
mov eax, dword [esp + 0x24]
add eax, edi
inc esi
inc esi
mov dword [esp + 0x10], eax
mov al, byte [eax]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x14], al
mov dl, byte [ecx + 1]
and al, 3
xor ecx, ecx
mov bl, al
mov al, dl
shl ebx, 4
and dl, 0xf
shr al, 4
mov cl, al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
or ebx, ecx
mov cl, byte [eax + 2]
xor eax, eax
and ebx, 0x3f
mov al, dl
mov dl, cl
shl eax, 2
and cl, 0x3f
shr dl, 6
mov byte [esp + 0x10], dl
xor edx, edx
or eax, dword [esp + 0x10]
mov dl, cl
mov dword [esp + 0x10], 0
mov cl, byte [esp + 0x14]
shr cl, 2
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
mov cl, byte [ecx + 0x488e38]
mov byte [esi - 2], cl
mov cl, byte [ebx + 0x488e38]
mov byte [esi - 1], cl
cmp ebp, 3
mov ecx, ebp
jb 0x46c4f9
mov ecx, 3
cmp ecx, 1
jne 0x46c507
mov byte [esi], 0x3d
mov byte [esi + 1], 0x3d
jmp 0x46c529
and eax, 0x3f
inc esi
cmp ecx, 2
mov al, byte [eax + 0x488e38]
mov byte [esi - 1], al
jne 0x46c51e
mov byte [esi], 0x3d
jmp 0x46c529
and edx, 0x3f
mov al, byte [edx + 0x488e38]
mov byte [esi], al
sub ebp, 3
mov eax, dword [esp + 0x20]
add edi, 3
add dword [eax], 4
cmp edi, dword [esp + 0x28]
jb 0x46c450
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x46d290
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov ecx, dword [esp + 0xc]
sub esp, 0xc8c
push ebx
push esi
push edi
push ebp
movsx eax, dx
inc dx
mov dword [ecx + eax*4], 0
movsx ebx, dx
cmp ebx, 5
jb 0x46d2a1
lea eax, [esp + 0x30]
mov edx, dword [esp + 0xca4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edx + 0x10], eax
lea eax, [esp + 0x44]
mov edx, dword [esp + 0xca0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edx + 0x10], eax
lea esi, [esp + 0x58]
lea eax, [esi - 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edx + 0x10], eax
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
shr eax, 1
mov dword [ebx], eax
mov eax, dword [ebx + 4]
rcr eax, 1
mov dword [ebx + 4], eax
mov eax, dword [ebx + 8]
rcr eax, 1
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
rcr eax, 1
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
rcr eax, 1
mov dword [ebx + 0x10], eax
jae 0x46d391
or dword [ebx], 0x20000000
add esi, 0x14
lea eax, [esp + 0xc9c]
cmp esi, eax
jb 0x46d327
movsx eax, word [0x48d600]
shl eax, 2
lea esi, [esp + 0x30]
lea edx, [eax + eax*4]
lea edi, [esp + edx + 0x44]
mov edx, ecx
mov eax, dword [edi]
add esi, 4
add edi, 4
add edx, 4
and eax, dword [esi - 4]
mov dword [edx - 4], eax
lea eax, [esp + 0x44]
cmp esi, eax
jb 0x46d3b6
mov edx, 0x48d602
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
shr eax, 1
mov dword [ebx], eax
mov eax, dword [ebx + 4]
rcr eax, 1
mov dword [ebx + 4], eax
mov eax, dword [ebx + 8]
rcr eax, 1
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
rcr eax, 1
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x10]
rcr eax, 1
mov dword [ebx + 0x10], eax
jae 0x46d413
or dword [ebx], 0x20000000
movsx edi, word [edx]
movsx eax, word [edx + 0x27a]
shl eax, 2
lea esi, [esp + 0x30]
shl edi, 2
lea ebp, [eax + eax*4]
lea ebx, [esp + ebp + 0x44]
lea eax, [edi + edi*4]
lea edi, [esp + eax + 0x44]
mov eax, ecx
mov ebp, dword [edi]
add esi, 4
xor ebp, dword [ebx]
add ebx, 4
and ebp, dword [esi - 4]
add edi, 4
xor dword [eax], ebp
add eax, 4
lea ebp, [esp + 0x44]
cmp esi, ebp
jb 0x46d437
add edx, 2
cmp edx, 0x48d73c
jb 0x46d3d4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc8c
ret
Function at 0x46d640
Capabilities:
Hash data using sha1

Disassembly:
push esi
push 0x5c
mov esi, dword [esp + 0xc]
push 0
push esi
call fcn.0046ccb0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
pop esi
ret

Function at 0x46d690
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
push ebp
mov eax, dword [esi + 0x14]
mov edx, eax
lea ecx, [eax + edi*8]
and edx, 0x1f8
shr edx, 3
cmp ecx, eax
jae 0x46d6b4
inc dword [esi + 0x18]
mov eax, edi
mov dword [esi + 0x14], ecx
shr eax, 0x1d
add dword [esi + 0x18], eax
test edx, edx
je 0x46d750
lea eax, [esi + edx + 0x1c]
mov ebx, 0x40
sub ebx, edx
cmp ebx, dword [esp + 0x1c]
jle 0x46d6ec
push edi
mov edi, dword [esp + 0x1c]
push edi
push eax
call fcn.0046ccd0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
mov edi, dword [esp + 0x18]
push ebx
push edi
push eax
call fcn.0046ccd0
add esp, 0xc
xor eax, eax
mov ax, word [0x488f48]
and eax, 0xffffff00
cmp eax, 0x5000
je 0x46d73f
lea ebp, [esi + 0x1c]
mov edx, 0x10
mov eax, dword [ebp]
add ebp, 4
mov ecx, eax
shl ecx, 0x10
shr eax, 0x10
or ecx, eax
mov eax, ecx
shl eax, 8
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
dec edx
mov dword [ebp - 4], ecx
jne 0x46d717
push esi
add edi, ebx
call fcn.0046dc90
sub dword [esp + 0x20], ebx
add esp, 4
jmp 0x46d754
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0x40
jl 0x46d7cc
mov ebx, dword [esp + 0x1c]
shr ebx, 6
mov eax, ebx
shl eax, 6
sub dword [esp + 0x1c], eax
push 0x40
lea eax, [esi + 0x1c]
push edi
push eax
call fcn.0046ccd0
add esp, 0xc
xor eax, eax
mov ax, word [0x488f48]
and eax, 0xffffff00
cmp eax, 0x5000
je 0x46d7bd
lea edx, [esi + 0x1c]
mov ecx, 0x10
mov eax, dword [edx]
add edx, 4
mov ebp, eax
shl ebp, 0x10
shr eax, 0x10
or ebp, eax
mov eax, ebp
shl eax, 8
shr ebp, 8
xor ebp, eax
and ebp, 0xff00ff
xor ebp, eax
dec ecx
mov dword [edx - 4], ebp
jne 0x46d796
push esi
add edi, 0x40
call fcn.0046dc90
add esp, 4
dec ebx
jne 0x46d76b
mov eax, dword [esp + 0x1c]
add esi, 0x1c
push eax
push edi
push esi
call fcn.0046ccd0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46d7f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
mov ecx, edi
and ecx, 0x1f8
mov eax, 0x3f
shr ecx, 3
sub eax, ecx
lea edx, [esi + ecx + 0x1c]
mov byte [edx], 0x80
inc edx
cmp eax, 8
jge 0x46d87f
push eax
push 0
push edx
call fcn.0046ccb0
add esp, 0xc
xor eax, eax
mov ax, word [0x488f48]
and eax, 0xffffff00
cmp eax, 0x5000
je 0x46d86c
lea eax, [esi + 0x1c]
mov ebp, 0x10
mov ecx, dword [eax]
add eax, 4
mov edx, ecx
shl edx, 0x10
shr ecx, 0x10
or edx, ecx
mov ecx, edx
shl ecx, 8
shr edx, 8
xor edx, ecx
and edx, 0xff00ff
xor edx, ecx
dec ebp
mov dword [eax - 4], edx
jne 0x46d845
push esi
call fcn.0046dc90
add esp, 4
lea eax, [esi + 0x1c]
push 0x38
push 0
push eax
jmp 0x46d886
sub eax, 8
push eax
push 0
push edx
call fcn.0046ccb0
add esp, 0xc
xor eax, eax
mov ax, word [0x488f48]
and eax, 0xffffff00
cmp eax, 0x5000
je 0x46d8d2
lea ebp, [esi + 0x1c]
mov eax, 0x10
mov ecx, dword [ebp]
add ebp, 4
mov edx, ecx
shl edx, 0x10
shr ecx, 0x10
or edx, ecx
mov ecx, edx
shl ecx, 8
shr edx, 8
xor edx, ecx
and edx, 0xff00ff
xor edx, ecx
dec eax
mov dword [ebp - 4], edx
jne 0x46d8aa
push esi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], edi
call fcn.0046dc90
add esp, 4
xor eax, eax
mov ax, word [0x488f48]
and eax, 0xffffff00
cmp eax, 0x5000
je 0x46d924
lea edx, [esi + 0x1c]
mov ecx, 0x10
mov eax, dword [edx]
add edx, 4
mov edi, eax
shl edi, 0x10
shr eax, 0x10
or edi, eax
mov eax, edi
shl eax, 8
shr edi, 8
xor edi, eax
and edi, 0xff00ff
xor edi, eax
dec ecx
mov dword [edx - 4], edi
jne 0x46d8fd
xor eax, eax
mov edx, esi
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx]
mov bl, byte [edx]
add edx, 4
add eax, 4
mov byte [edi], bl
mov ebx, dword [edx - 4]
mov byte [edi + 1], bh
mov ebx, dword [edx - 4]
shr ebx, 0x10
mov byte [edi + 2], bl
mov ebx, dword [edx - 4]
shr ebx, 0x18
cmp eax, 0x14
mov byte [edi + 3], bl
jb 0x46d92c
push 0x5c
push 0
push esi
call fcn.0046ccb0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4717d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax], 0x67452301
ret
Function at 0x4722c0
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
sub esp, 0x3c
xor ecx, ecx
push ebx
push esi
push edi
mov esi, dword [esp + 0x4c]
push ebp
movsx eax, dx
inc dx
or ecx, dword [esi + eax*4]
movsx eax, dx
cmp eax, 5
jb 0x4722d0
test ecx, ecx
jne 0x472316
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push edi
push eax
call fcn.0046cf80
add esp, 8
push edi
call fcn.0046cf20
add esp, 4
lea eax, [edi + 0x14]
push eax
push edi
call fcn.0046cf80
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0046d470
lea eax, [esp + 0x40]
add esp, 8
push eax
call fcn.0046cee0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x58]
add esp, 4
push eax
push ecx
push edx
call fcn.0046d290
lea ecx, [esp + 0x30]
add esp, 0xc
xor edi, edi
push ecx
call fcn.0046cf20
add esp, 4
xor ecx, ecx
movsx eax, cx
inc cx
xor edi, dword [esp + eax*4 + 0x24]
movsx eax, cx
cmp eax, 5
jb 0x472359
mov dx, 0x10
mov eax, 0xffffffff
mov cl, dl
shr eax, cl
sar dx, 1
mov ebx, eax
and ebx, edi
shr edi, cl
xor ebx, edi
test dx, dx
mov edi, ebx
jg 0x472373
test edi, edi
je 0x4723b4
mov edi, dword [esp + 0x58]
push edi
call fcn.0046cf60
add esp, 4
add edi, 0x14
push edi
call fcn.0046cf60
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x10]
push eax
call fcn.0046cf60
xor dx, dx
add esp, 4
mov ecx, 1
movsx ebp, dx
mov di, 4
mov eax, ebp
mov bx, 4
inc ebp
shr eax, 5
shr ebp, 5
sub di, ax
movsx eax, di
sub bx, bp
lea ebp, [eax*4]
mov eax, dword [esp + eax*4 + 0x10]
xor eax, dword [esp + ebp + 0x24]
and eax, ecx
cmp bx, di
jne 0x472409
movsx edi, bx
add eax, eax
add ecx, ecx
or dword [esp + edi*4 + 0x10], eax
jmp 0x472419
mov ecx, 1
test eax, eax
je 0x472419
movsx eax, bx
mov dword [esp + eax*4 + 0x10], ecx
inc dx
cmp dx, 0x9e
jl 0x4723c9
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x58]
xor eax, dword [esp + 0x24]
push edi
test eax, 0x20000000
je 0x472457
add edi, 0x14
call fcn.0046cf60
add esp, 4
push edi
call fcn.0046cf60
add esp, 4
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0046d290
add esp, 0xc
lea eax, [edi + 0x14]
push eax
call fcn.0046cf60
xor cx, cx
add esp, 4
movsx eax, cx
shl eax, 2
inc cx
lea edx, [eax + edi]
mov eax, dword [esi + eax]
xor eax, dword [edx]
mov dword [edx + 0x14], eax
movsx edx, cx
cmp edx, 5
jb 0x472474
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x4724a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
mov esi, dword [esp + 0x30]
push edi
push eax
push esi
call fcn.0046cf80
lea ecx, [esp + 0x10]
add esp, 8
push ecx
call fcn.0046cee0
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
add esp, 4
push eax
push ecx
push esi
call fcn.0046d290
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp word [esi], 0
push edi
je 0x4724f9
lea eax, [esi + 2]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0046d290
add esp, 0xc
jmp 0x472501
call fcn.0046cf60
add esp, 4
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esi + eax + 0x16]
xor ecx, dword [esp + eax + 0x1c]
xor dword [eax + edi], ecx
movsx eax, dx
cmp eax, 5
jb 0x472504
pop edi
pop esi
add esp, 0x28
ret

Function at 0x472530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x28]
push ebx
push esi
push edi
push ebp
push eax
call fcn.0046cf60
lea eax, [esp + 0x50]
add esp, 4
push eax
call fcn.0046cf60
xor cx, cx
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
add esp, 4
movsx eax, cx
inc cx
lea edi, [eax*4]
lea eax, [edi + ebx]
lea edx, [edi + esi]
mov ebp, dword [eax]
mov eax, dword [eax + 0x14]
xor ebp, dword [edx]
xor eax, dword [edx + 0x14]
movsx edx, cx
mov dword [esp + edi + 0x38], ebp
mov dword [esp + edi + 0x4c], eax
cmp edx, 5
jb 0x47255f
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.0046d470
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x54]
lea eax, [esp + 0x68]
add esp, 8
push ecx
push edx
push eax
call fcn.0046d290
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
add esp, 0xc
push ecx
push edx
call fcn.0046cf80
lea ecx, [esp + 0x18]
add esp, 8
push ecx
call fcn.0046cee0
mov ecx, dword [esp + 0x88]
add esp, 4
cmp word [ecx], 0
je 0x472611
xor dx, dx
mov edi, dword [esp + 0x80]
movsx eax, dx
shl eax, 2
inc dx
mov ebp, dword [ecx + eax + 2]
xor ebp, dword [eax + ebx]
xor ebp, dword [eax + esi]
xor ebp, dword [esp + eax + 0x10]
xor ebp, dword [esp + eax + 0x24]
mov dword [eax + edi], ebp
movsx eax, dx
cmp eax, 5
jb 0x4725ea
jmp 0x47263c
xor cx, cx
mov edi, dword [esp + 0x80]
movsx eax, cx
shl eax, 2
inc cx
mov edx, dword [eax + ebx]
xor edx, dword [eax + esi]
xor edx, dword [esp + eax + 0x10]
xor edx, dword [esp + eax + 0x24]
mov dword [eax + edi], edx
movsx eax, cx
cmp eax, 5
jb 0x47261b
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [eax + edi]
xor ecx, dword [eax + esi]
mov dword [esp + eax + 0x38], ecx
movsx eax, dx
cmp eax, 5
jb 0x47263f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push eax
push ecx
push edx
call fcn.0046d290
xor dx, dx
add esp, 0xc
movsx eax, dx
inc dx
mov ebx, dword [esi + eax*4 + 0x14]
xor ebx, dword [esp + eax*4 + 0x10]
lea ecx, [eax*4]
lea eax, [ecx + edi]
xor ebx, dword [eax]
mov dword [eax + 0x14], ebx
movsx eax, dx
cmp eax, 5
jb 0x472673
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x4726a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x28]
push ebx
push esi
push edi
mov esi, dword [esp + 0x74]
push eax
push esi
call fcn.0046d470
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
add esp, 8
lea eax, [esi + 0x14]
push ecx
push eax
push edx
call fcn.0046d290
xor dx, dx
add esp, 0xc
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [eax + esi]
xor ecx, dword [esp + eax + 0xc]
mov dword [esp + eax + 0x20], ecx
movsx eax, dx
cmp eax, 5
jb 0x4726d1
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0046cf80
lea ecx, [esp + 0x50]
add esp, 8
push ecx
call fcn.0046cee0
mov ecx, dword [esp + 0x80]
add esp, 4
cmp word [ecx], 0
je 0x472740
xor dx, dx
mov edi, dword [esp + 0x78]
movsx eax, dx
shl eax, 2
inc dx
mov ebx, dword [eax + ecx + 2]
xor ebx, dword [esp + eax + 0x48]
xor ebx, dword [esp + eax + 0x20]
mov dword [eax + edi], ebx
movsx eax, dx
cmp eax, 5
jb 0x47271f
jmp 0x472762
xor dx, dx
mov edi, dword [esp + 0x78]
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x48]
xor ecx, dword [esp + eax + 0x20]
mov dword [eax + edi], ecx
movsx eax, dx
cmp eax, 5
jb 0x472747
xor cx, cx
mov edx, 0xffffffff
movsx eax, cx
inc cx
mov dword [esp + eax*4 + 0xc], edx
movsx ebx, cx
cmp ebx, 5
jb 0x47276a
and dword [esp + 0xc], 0x3fffffff
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x20]
xor dword [esp + eax + 0xc], ecx
movsx eax, dx
cmp eax, 5
jb 0x472786
lea eax, [esp + 0x5c]
lea ecx, [esp + 0xc]
push eax
push edi
push ecx
call fcn.0046d290
lea ecx, [esp + 0x40]
add esp, 0xc
push ecx
push esi
call fcn.0046cf80
lea ecx, [esp + 0x3c]
add esp, 8
push ecx
call fcn.0046cee0
xor dx, dx
add esp, 4
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x34]
xor ecx, dword [esp + eax + 0x5c]
mov dword [eax + edi + 0x14], ecx
movsx eax, dx
cmp eax, 5
jb 0x4727cf
pop edi
pop esi
pop ebx
add esp, 0x64
ret

Function at 0x472800
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
xor di, di
call fcn.0046cf80
lea ecx, [esp + 0x24]
add esp, 8
push ecx
call fcn.0046cf60
add esp, 4
movsx eax, di
inc di
lea ecx, [eax*4]
mov edx, dword [esi + ecx + 0x14]
lea eax, [esi + ecx]
xor edx, dword [eax]
movsx eax, di
mov dword [esp + ecx + 0x1c], edx
cmp eax, 5
jb 0x472827
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.00472530
add esp, 0x10
pop edi
pop esi
add esp, 0x28
ret
Function at 0x475608
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x48dd60]
mov eax, dword [0x48913c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4757ce
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x48dd80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4757ce
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x475672
xor eax, eax
jmp 0x4757e2
test al, 0x20
je 0x475683
push 2
push edi
push edi
push ecx
call fcn.004796c8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x475758
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x47579f
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4756e5
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4756d6
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4756b8
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x475725
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x475731
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4756ac
jmp 0x475733
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4757c9
cmp dword [ebp + 0x3a4], edi
je 0x47579f
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x475791
mov dword [0x48bfec], eax
jmp 0x4757d5
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x475783
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x475733
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x475733
push dword [ebp + 0x3a4]
call fcn.00479163
pop ecx
jmp 0x4757df
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4757b7
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x47566b
mov dword [0x48bfe8], 0x1c
mov dword [0x48bfec], edi
jmp 0x4757df
sub eax, dword [ebp - 0x7c]
jmp 0x4757e2
and dword [0x48bfec], 0
mov dword [0x48bfe8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00474d28
add ebp, 0x39c
leave
ret
Function at 0x475d3f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x48c034], esi
push edi
jne 0x475d5f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x48c030], esi
mov byte [0x48c02c], al
jne 0x475dc5
mov ecx, dword [0x48eecc]
test ecx, ecx
je 0x475da6
mov eax, dword [0x48eec8]
sub eax, 4
cmp eax, ecx
jmp 0x475d9f
mov eax, dword [eax]
test eax, eax
je 0x475d91
call eax
mov eax, dword [0x48eec8]
sub eax, 4
cmp eax, dword [0x48eecc]
mov dword [0x48eec8], eax
jae 0x475d89
mov eax, 0x47f020
mov esi, 0x47f028
cmp eax, esi
mov edi, eax
jae 0x475dc5
mov eax, dword [edi]
test eax, eax
je 0x475dbe
call eax
add edi, 4
cmp edi, esi
jb 0x475db6
mov eax, 0x47f02c
mov esi, 0x47f030
cmp eax, esi
mov edi, eax
jae 0x475de4
mov eax, dword [edi]
test eax, eax
je 0x475ddd
call eax
add edi, 4
cmp edi, esi
jb 0x475dd5
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x475dfe
push dword [ebp + 8]
mov dword [0x48c034], 1
call fcn.00475ca5
pop ebp
ret

Function at 0x4787bb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x48913c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4893f0]
je 0x4787f0
inc eax
cmp eax, 0x13
jb 0x4787e1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4893f0]
jne 0x478916
mov eax, dword [0x48bfe4]
cmp eax, 1
je 0x4788ee
cmp eax, edx
jne 0x478820
cmp dword [0x489144], 1
je 0x4788ee
cmp ecx, 0xfc
je 0x478916
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x478856
lea eax, [ebp - 0x80]
push 0x401bf0
push eax
call fcn.00479dd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00478730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47888a
mov eax, edi
push eax
call fcn.00478730
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x401bec
push edi
call fcn.00479ed0
add esp, 0x10
push edi
call fcn.00478730
push dword [esi + 0x4893f4]
mov ebx, eax
call fcn.00478730
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00474d40
mov ebx, esp
push 0x402160
push ebx
call fcn.00479dd0
push edi
push ebx
call fcn.00479de0
push 0x401be8
push ebx
call fcn.00479de0
push dword [esi + 0x4893f4]
push ebx
call fcn.00479de0
push 0x12010
push 0x401bb4
push ebx
call fcn.00479cc8
add esp, 0x2c
jmp 0x478916
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4893f4]
push dword [esi]
call fcn.00478730
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00474d28
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret