joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d60
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 0x5c
push edi
call fcn.004292a0
push 0x2f
push edi
mov esi, eax
call fcn.004292a0
add esp, 0x10
test eax, eax
je 0x401d8f
test esi, esi
je 0x401d8d
mov ecx, eax
sub ecx, esi
test ecx, ecx
jle 0x401d8f
mov esi, eax
test esi, esi
je 0x401df9
mov bl, byte [esi]
mov ecx, edi
mov byte [esi], 0
call fcn.00401d60
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401da4
sub ecx, edx
cmp ecx, 2
jbe 0x401df7
push 0
sub esp, 0xc
mov ecx, esp
push edi
call fcn.00403745
lea eax, [esp + 0x1c]
push eax
call fcn.0042686d
add esp, 0x14
lea ecx, [esp + 0xc]
push 0x465688
call fcn.00403878
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.004037fb
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea ecx, [esp + 0xc]
call fcn.0040377f
mov byte [esi], bl
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x4022d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4000
call fcn.00428360
push ebx
push ebp
mov ebp, dword [esp + 0x400c]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x4014]
push edi
nop
mov eax, 0x4000
cmp esi, eax
push ebp
cmovl eax, esi
push eax
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0042e1d0
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x402371
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
push edi
call fcn.00402240
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [ebx + 0x250]
call fcn.00426c90
push dword [esp + 0x401c]
lea eax, [esp + 0x14]
push edi
push 1
push eax
call fcn.0042de24
add esp, 0x10
cmp edi, eax
jne 0x40235f
sub esi, edi
test esi, esi
jg 0x4022f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4000
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x4000
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x4000
ret 0xc
Function at 0x402390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x400c
call fcn.00428360
push ebx
mov ebx, dword [esp + 0x4014]
movaps xmm1, xmm3
push ebp
mov ebp, dword [esp + 0x401c]
push esi
push edi
movsd qword [esp + 0x10], xmm1
mov edi, ecx
nop word [eax + eax]
movsd xmm0, qword [0x456910]
mov edx, 0x4000
comisd xmm0, xmm1
jbe 0x402439
xor edx, edx
lea ecx, [edx + 2]
nop dword [eax + eax]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jae 0x402439
lea eax, [ecx - 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jae 0x402438
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jae 0x402433
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jae 0x40242e
add ecx, 4
add edx, 4
cmp ecx, 0x4002
jl 0x4023e0
jmp 0x402439
add edx, 3
jmp 0x402439
add edx, 2
jmp 0x402439
inc edx
push ebx
push edx
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0042e1d0
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x4024c9
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push esi
call fcn.00402240
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [edi + 0x250]
call fcn.00426c90
push ebp
push esi
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0042de24
add esp, 0x10
cmp esi, eax
jne 0x4024b7
movsd xmm1, qword [esp + 0x10]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
xorps xmm0, xmm0
comisd xmm0, xmm1
movsd qword [esp + 0x10], xmm1
jb 0x4023c0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400c
ret 8
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400c
ret 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x400c
ret 8

Function at 0x4024e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x10], edi
mov esi, ecx
mov dword [esp + 0x14], ebp
test ebx, ebx
je 0x4025ca
mov ecx, dword [esi + 0x400c]
dec ebx
lea eax, [ecx - 1]
mov dword [esi + 0x400c], eax
test ecx, ecx
jne 0x40259d
cmp dword [esi + 4], 0x4000
lea edi, [esi + 0xc]
mov dword [esi + 0x400c], 7
jl 0x402547
push dword [esi]
mov dword [esi + 4], ecx
push 0x4000
push 1
push edi
call fcn.0042e1d0
add esp, 0x10
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x4014]
mov ebp, edi
mov eax, dword [ecx]
cmp eax, 0x20
je 0x40257a
cmp eax, 0x21
je 0x40257a
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], 0
push eax
push eax
push 1
add ecx, 0x110
call fcn.0040445d
movzx edx, byte [esp + 0x1c]
jmp 0x402586
add ecx, 4
call fcn.00426bfc
mov edx, eax
mov edi, ebp
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x14]
movsx ecx, byte [eax + edi]
mov edi, dword [esp + 0x10]
xor ecx, edx
inc eax
mov dword [esi + 4], eax
jmp 0x4025a3
mov cl, byte [esi + 0x4010]
movzx edx, cl
mov al, cl
and edx, 1
shr al, 1
mov ecx, ebp
mov byte [esi + 0x4010], al
shl edx, cl
inc ebp
add edi, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
test ebx, ebx
jne 0x402501
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4025e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0xc06c
call fcn.00428360
mov eax, dword [esp + 0xc074]
mov dword [esp + 0x8050], eax
lea eax, [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0xc078]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4040]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x8058]
push edi
push 0x4000
mov dword [esp + 0x28], eax
lea eax, [esp + 0x4054]
push 1
push eax
mov dword [esp + 0x805c], 0
mov dword [esp + 0xc074], 0
mov dword [esp + 0x4050], edi
mov dword [esp + 0x8064], ecx
mov dword [esp + 0xc07c], ecx
mov dword [esp + 0x806c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 8
mov dword [esp + 0x4054], 0
call fcn.0042e1d0
add esp, 0x10
mov dword [esp + 0x4048], eax
nop
lea ecx, [esp + 0x10]
call fcn.00401b10
test eax, eax
jne 0x4026c0
mov esi, dword [esp + 0x4044]
lea eax, [esp + 8]
sub esi, dword [esp + 0x4048]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [esp + 0x10], xmm0
call fcn.0042df54
mov eax, esi
cdq
add dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
adc dword [esp + 0x18], edx
push edi
call fcn.0042dfaf
mov eax, dword [esp + 0x806c]
add esp, 0x10
test eax, eax
jle 0x40272d
push dword [esp + 0x8058]
push eax
lea eax, [esp + 0x806c]
push 1
push eax
call fcn.0042de24
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0xc06c
ret 8

Function at 0x402740
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp], xmm0
push esi
mov esi, ecx
push edi
mov edi, edx
test eax, eax
jne 0x40275e
mov eax, edi
cdq
jmp 0x4027ac
cmp eax, 1
jne 0x40277e
lea eax, [esp + 8]
push eax
push esi
call fcn.0042df54
mov eax, edi
add esp, 8
cdq
add dword [esp + 8], eax
adc dword [esp + 0xc], edx
jmp 0x4027b4
cmp eax, 2
jne 0x4027b4
push esi
call fcn.0042dbde
add esp, 4
push eax
call fcn.0042da79
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov eax, edi
cdq
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push esi
call fcn.0042dfaf
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x10
ret
Function at 0x403260
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x30
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov edx, eax
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403270
sub eax, esi
lea ecx, [esp + 0x10]
sar eax, 1
push 0
push edx
lea eax, [eax*2 + 4]
push eax
call fcn.0040372b
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4656a4]
cmp eax, dword [ecx + 4]
jle 0x4032e6
push 0x4656a4
call fcn.00427d52
add esp, 4
cmp dword [0x4656a4], 0xffffffff
jne 0x4032e6
push 0
lea eax, [esp + 0x14]
push eax
push 0x465698
call fcn.00403fb6
push 0x443b10
call fcn.004280ae
push 0x4656a4
call fcn.00427d08
add esp, 0x14
mov ecx, 0x465698
call fcn.00403d87
push 0x465698
lea ecx, [esp + 8]
call fcn.004036c6
lea ecx, [esp + 4]
call fcn.00403d87
push 0
mov ecx, 0x465698
call fcn.004037fb
cmp byte [eax], 0x22
jne 0x403493
push 1
lea eax, [esp + 0x2c]
mov ecx, 0x465698
push eax
call fcn.00403e44
push eax
lea eax, [esp + 0x20]
mov ecx, 0x465698
push eax
call fcn.00403784
lea ecx, [esp + 0x1c]
call fcn.0040377f
lea ecx, [esp + 0x28]
call fcn.0040377f
push 0
push 0x22
mov ecx, 0x465698
call fcn.00403c18
mov esi, eax
test esi, esi
jle 0x403493
mov ecx, 0x465698
call fcn.00403875
cmp esi, eax
jge 0x403493
push esi
lea eax, [esp + 0x20]
mov ecx, 0x465698
push eax
call fcn.00403e44
push eax
lea eax, [esp + 0x2c]
mov ecx, 0x465698
push eax
call fcn.00403784
lea ecx, [esp + 0x28]
call fcn.0040377f
lea ecx, [esp + 0x1c]
call fcn.0040377f
mov ecx, 0x465698
call fcn.00403875
cmp eax, 1
jle 0x403493
push 2
lea eax, [esp + 0x20]
mov ecx, 0x465698
push eax
call fcn.00403e44
push eax
lea eax, [esp + 0x2c]
mov ecx, 0x465698
push eax
call fcn.00403784
lea ecx, [esp + 0x28]
call fcn.0040377f
lea ecx, [esp + 0x1c]
call fcn.0040377f
mov ecx, 0x465698
call fcn.00403875
cmp eax, 1
jle 0x403493
push 0
mov ecx, 0x465698
call fcn.004037fb
cmp byte [eax], 0x22
jne 0x403493
push 1
lea eax, [esp + 0x20]
mov ecx, 0x465698
push eax
call fcn.00403e44
push eax
lea eax, [esp + 0x2c]
mov ecx, 0x465698
push eax
call fcn.00403784
lea ecx, [esp + 0x28]
call fcn.0040377f
lea ecx, [esp + 0x1c]
call fcn.0040377f
mov ecx, 0x465698
call fcn.00403875
dec eax
mov ecx, 0x465698
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00403f88
push eax
lea eax, [esp + 0x2c]
mov ecx, 0x465698
push eax
call fcn.00403784
lea ecx, [esp + 0x28]
call fcn.0040377f
lea ecx, [esp + 0x1c]
call fcn.0040377f
mov ecx, 0x465698
call fcn.004039c2
mov esi, eax
jmp 0x4034d5
lea eax, [esp + 4]
mov ecx, 0x465698
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403784
lea ecx, [esp + 0x28]
call fcn.0040377f
push 0
mov ecx, 0x465698
call fcn.004037fb
push 0x20
push eax
call fcn.004292a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4034d3
inc esi
cmp byte [esi], 0
jne 0x4034d5
xor esi, esi
lea ecx, [esp + 4]
call fcn.0040377f
lea ecx, [esp + 0x10]
call fcn.0040377f
mov eax, esi
pop esi
add esp, 0x30
ret
Function at 0x4034f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a0
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00403260
test eax, eax
lea ecx, [esp + 0x144]
cmovne edi, eax
call fcn.004041f6
lea ecx, [esp + 0x144]
mov dword [esp + method.cdk::RC4.virtual_0], vtable.cdk::RC4.0
call fcn.00426c58
lea ecx, [esp + 0x250]
call fcn.00404263
lea ecx, [esp + 0x390]
call fcn.004041f6
mov eax, dword [ebp + 8]
push 0
sub esp, 0xc
mov dword [esp + method.cdk::CRC.virtual_0], vtable.cdk::CRC.0
mov ecx, esp
mov dword [esp + 0x3ac], 0xffffffff
mov dword [esp + 0x3a8], 0xffffffff
mov dword [esp + 0x3b0], 0
push edi
mov dword [esp + 0x144], esi
mov dword [esp + 0x148], eax
call fcn.00403745
lea eax, [esp + 0x2c]
push eax
call fcn.0042686d
add esp, 0x14
lea ecx, [esp + 0x1c]
push 0x465688
call fcn.00403878
push 0x4568c4
push 0
lea ecx, [esp + 0x24]
call fcn.004037fb
push eax
call fcn.0042df3d
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4035d4
lea esi, [eax + 3]
jmp 0x40363f
xorps xmm0, xmm0
push esi
movlpd qword [esp + 0xc], xmm0
call fcn.0042dbde
add esp, 4
push eax
call fcn.0042da79
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub ecx, 6
mov dword [esp + 8], ecx
sbb eax, 0
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push esi
call fcn.0042dfaf
add esp, 8
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x28]
call fcn.004027d0
mov esi, eax
test esi, esi
je 0x403624
push dword [esp + 0x28]
call fcn.0042db5a
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.0040377f
mov eax, dword [esp + 0x39c]
lea ecx, [esp + 0x390]
mov dword [esp + method.cdk::CRC.virtual_0], vtable.cdk::CRC.0
mov dword [esp + 0x398], eax
mov dword [esp + 0x3a0], 0
call fcn.00404203
lea ecx, [esp + 0x250]
mov dword [esp + method.cdk::AES.virtual_0], vtable.cdk::AES.0
call fcn.004043e7
lea ecx, [esp + 0x250]
call fcn.00404203
lea ecx, [esp + 0x144]
mov dword [esp + method.cdk::RC4.virtual_0], vtable.cdk::RC4.0
call fcn.00426c58
lea ecx, [esp + 0x144]
call fcn.00404203
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4041a4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43f260
call fcn.00428310
push ecx
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004036c6
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
call fcn.00403d87
cmp dword [edi], esi
jle 0x4041e6
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
xor byte [ecx + esi], al
inc esi
cmp esi, dword [edi]
jl 0x4041db
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404505
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x463e31], 0
jne 0x40590a
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ebx, [ecx + 0x10c]
push edi
mov edi, ebx
push ebx
push dword [ecx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00404ca1
mov edi, dword [esp + 0x14]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
ret 8
mov edx, dword [ecx + 0x18]
mov eax, edx
add eax, eax
dec edx
movups xmm1, xmmword [ecx + eax*8 + 0x1c]
mov eax, dword [esp + 4]
movups xmm0, xmmword [eax]
pxor xmm1, xmm0
test edx, edx
jle 0x405940
mov eax, edx
shl eax, 4
add eax, 0x1c
add eax, ecx
movups xmm0, xmmword [eax]
dec edx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test edx, edx
jg 0x405930
movups xmm0, xmmword [ecx + 0x1c]
mov eax, dword [esp + 8]
aesdeclast xmm1, xmm0
movups xmmword [eax], xmm1
ret 8
Function at 0x4047e6
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x463e31], 0
jne 0x405953
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ebx, [ecx + 0x10c]
push edi
mov edi, ebx
push ebx
push dword [ecx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00405055
mov edi, dword [esp + 0x14]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esp + 4]
movups xmm1, xmmword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
movups xmm0, xmmword [eax]
pxor xmm1, xmm0
cmp edx, 1
jle 0x405982
push esi
lea eax, [ecx + 0x2c]
lea esi, [edx - 1]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x10]
aesenc xmm1, xmm0
sub esi, 1
jne 0x405971
pop esi
mov eax, dword [esp + 8]
add edx, edx
movups xmm0, xmmword [ecx + edx*8 + 0x1c]
aesenclast xmm1, xmm0
movups xmmword [eax], xmm1
ret 8
Function at 0x40542a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
cmp ecx, 1
jle 0x40549b
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
lea ebx, [ecx - 1]
push edi
add esi, 0x10
cmp byte [0x463e31], 0
je 0x405453
push esi
call fcn.004058fa
pop ecx
jmp 0x40548f
push 4
lea edi, [esi + 2]
pop ebp
movzx eax, byte [edi + 1]
movzx ecx, byte [edi - 1]
mov edx, dword [eax*4 + 0x461d20]
movzx eax, byte [edi - 2]
xor edx, dword [ecx*4 + 0x461520]
xor edx, dword [eax*4 + 0x461120]
movzx eax, byte [edi]
lea edi, [edi + 4]
xor edx, dword [eax*4 + 0x461920]
mov dword [edi - 6], edx
sub ebp, 1
jne 0x405459
add esi, 0x10
sub ebx, 1
jne 0x405441
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40549c
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edx, dword [esp + 0x10]
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
lea ecx, [esi - 1]
test ecx, ecx
js 0x4054be
mov eax, dword [edx + ecx*4]
mov dword [esp + ecx*4 + 0x10], eax
sub ecx, 1
jns 0x4054b2
mov ebp, dword [esp + 0x3c]
xor edx, edx
xor edi, edi
xor ebx, ebx
test esi, esi
jle 0x405518
lea eax, [ebp + 1]
mov dword [esp + 0x34], eax
mov ebp, eax
cmp edi, ebp
jge 0x405514
cmp ebx, esi
jge 0x4054fb
mov ebp, dword [esp + 0x44]
cmp edx, 4
jge 0x4054f7
mov eax, dword [esp + ebx*4 + 0x10]
lea ecx, [edx + edi*4]
inc ebx
mov dword [ebp + ecx*4], eax
inc edx
cmp ebx, esi
jl 0x4054e1
mov ebp, dword [esp + 0x34]
cmp edx, 4
lea eax, [edi + 1]
cmovne eax, edi
mov edi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp ebx, esi
jl 0x4054d5
mov ebp, dword [esp + 0x3c]
inc ebp
mov dword [esp + 0x3c], ebp
cmp edi, ebp
jge 0x40563e
mov ebx, 0x45f100
movzx eax, byte [esp + esi*4 + 0xd]
mov cl, byte [esp + 0x10]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x10], cl
movzx eax, byte [esp + esi*4 + 0xe]
mov al, byte [eax + str.cw]
xor byte [esp + 0x11], al
movzx eax, byte [esp + esi*4 + 0xf]
mov al, byte [eax + str.cw]
xor byte [esp + 0x12], al
movzx eax, byte [esp + esi*4 + 0xc]
mov al, byte [eax + str.cw]
xor byte [esp + 0x13], al
mov al, byte [ebx]
xor al, cl
xor ecx, ecx
inc ebx
mov byte [esp + 0x10], al
inc ecx
mov dword [esp + 0x34], ebx
cmp esi, 8
je 0x405592
cmp esi, ecx
jle 0x4055ed
mov eax, dword [esp + ecx*4 + 0xc]
xor dword [esp + ecx*4 + 0x10], eax
inc ecx
cmp ecx, esi
jl 0x405583
jmp 0x4055ed
mov eax, dword [esp + ecx*4 + 0xc]
xor dword [esp + ecx*4 + 0x10], eax
inc ecx
cmp ecx, 4
jl 0x405592
movzx eax, byte [esp + 0x1c]
push 5
pop ecx
mov al, byte [eax + str.cw]
xor byte [esp + 0x20], al
movzx eax, byte [esp + 0x1d]
mov al, byte [eax + str.cw]
xor byte [esp + 0x21], al
movzx eax, byte [esp + 0x1e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x22], al
movzx eax, byte [esp + 0x1f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x23], al
mov eax, dword [esp + ecx*4 + 0xc]
xor dword [esp + ecx*4 + 0x10], eax
inc ecx
cmp ecx, 8
jl 0x4055df
xor ebx, ebx
test esi, esi
jle 0x405632
cmp edi, ebp
jge 0x405634
cmp ebx, esi
jge 0x405619
mov ebp, dword [esp + 0x44]
cmp edx, 4
jge 0x405615
mov eax, dword [esp + ebx*4 + 0x10]
lea ecx, [edx + edi*4]
inc ebx
mov dword [ebp + ecx*4], eax
inc edx
cmp ebx, esi
jl 0x4055ff
mov ebp, dword [esp + 0x3c]
cmp edx, 4
lea eax, [edi + 1]
cmovne eax, edi
mov edi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp ebx, esi
jl 0x4055f3
cmp edi, ebp
mov ebx, dword [esp + 0x34]
jl 0x40552a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x405669
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cdq
and edx, 7
mov dword [esp], ecx
push ebx
push esi
xor ebx, ebx
lea esi, [edx + eax]
mov eax, dword [esp + 0x18]
sar esi, 3
dec esi
mov dword [esp + 0xc], esi
and eax, 0x80000007
jns 0x405698
dec eax
or eax, 0xfffffff8
add eax, 1
je 0x4056a4
mov ebx, 0x40d
jmp 0x405783
mov ecx, dword [esp + 0x1c]
push ebp
push edi
test ecx, ecx
je 0x40577c
mov edi, dword [esp + 0x28]
test edi, edi
je 0x40577c
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40577c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff8
push eax
lea eax, [ecx + 8]
push eax
push ebp
call fcn.0042b270
add esp, 0xc
lea ecx, [esi*8]
add ecx, ebp
imul ebp, esi, 6
mov dword [esp + 0x18], ecx
push 5
pop eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
cmp esi, 1
jl 0x405769
mov ebx, ebp
mov dword [esp + 0x20], esi
mov esi, ecx
lea ebp, [edi + 8]
xor byte [edi + 7], bl
mov eax, ebx
shr eax, 8
sub esi, 8
xor byte [edi + 6], al
mov eax, ebx
shr eax, 0x10
xor byte [edi + 5], al
mov eax, ebx
push 8
shr eax, 0x18
xor byte [edi + 4], al
push esi
push ebp
call fcn.0042b270
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
push edi
push 0x10
call fcn.0040445d
push 8
push ebp
push esi
call fcn.0042b270
add esp, 0xc
dec ebx
sub dword [esp + 0x20], 1
jne 0x40570e
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
dec eax
sub ebp, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
test eax, eax
jns 0x4056fa
xor ebx, ebx
jmp 0x405781
mov ebx, 0x407
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x40578d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0xc], ecx
push esi
and eax, 0x80000007
jns 0x4057ab
dec eax
or eax, 0xfffffff8
add eax, 1
jne 0x40589d
mov eax, dword [esp + 0x20]
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
mov dword [esp + 0x14], esi
cmp esi, 2
jl 0x40589d
cmp dword [esp + 0x24], ebx
je 0x405896
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x405896
push edi
push dword [esp + 0x24]
lea eax, [ebp + 8]
push dword [esp + 0x2c]
push eax
call fcn.0042b270
mov edi, dword [esp + 0x2c]
add esp, 0xc
xor eax, eax
inc eax
mov dword [esp + 0x28], eax
push 6
pop ecx
mov dword [esp + 0x10], ecx
cmp esi, 1
jl 0x405876
mov dword [esp + 0x24], esi
mov ebx, eax
mov dword [esp + 0x20], ebp
lea esi, [edi + 8]
push 8
add ebp, 8
push ebp
push esi
call fcn.0042b270
mov ecx, dword [esp + 0x20]
add esp, 0xc
push edi
push edi
push 0x10
call fcn.0040445d
xor byte [edi + 7], bl
mov eax, ebx
shr eax, 8
xor byte [edi + 6], al
mov eax, ebx
shr eax, 0x10
xor byte [edi + 5], al
mov eax, ebx
push 8
shr eax, 0x18
xor byte [edi + 4], al
push esi
push ebp
call fcn.0042b270
add esp, 0xc
inc ebx
sub dword [esp + 0x24], 1
jne 0x40581b
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add eax, esi
sub ecx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
jne 0x405809
push 8
push edi
push ebp
call fcn.0042b270
add esp, 0xc
xor ebx, ebx
pop edi
jmp 0x4058a2
mov ebx, 0x407
jmp 0x4058a2
mov ebx, 0x40d
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 0x10

Function at 0x4058ad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x463e32], 0
mov edx, dword [ebp + 8]
je 0x4058d5
cmp edx, 0x10
jne 0x4058d5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
call fcn.00405998
add esp, 0x10
pop ebp
ret
test edx, edx
je 0x4058f8
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
sub esi, ecx
sub edi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
sub edx, 1
jne 0x4058e8
pop edi
pop esi
pop ebp
ret