joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x1004d8db
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
movq qword [eax], xmm0
jmp 0x1004d955
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
adc edx, 0
push edx
push edi
call fcn.10040ec0
mov esi, eax
add esp, 8
test esi, esi
je 0x1004d907
push edi
push 0
push esi
call fcn.100eb400
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test esi, esi
jne 0x1004d945
push dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.100d33c0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x18], ecx
inc dword [ebx + 0x78]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007fe70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
xor edi, edi
cmp dword [ecx + 0x14], edi
jle 0x1007ff0a
nop dword [eax + eax]
mov eax, edi
mov ecx, edi
xor eax, 1
cmp edi, 2
cmovl ecx, eax
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x1007ff56
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 4]
add edx, edx
mov eax, esi
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x105f7750]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x105f7750]
sub esi, ecx
jne 0x1007fefb
sub edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
test bl, bl
je 0x1007ff4c
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x105f7750]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x105f7750]
sub esi, edx
mov edx, dword [ebp - 0xc]
je 0x1007fed7
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
mov esi, dword [ebp + 8]
cmp edi, dword [ecx + 0x14]
jl 0x1007fe90
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x105f7750]
sub eax, 0x73
jne 0x1007ff43
mov esi, str.sqlite_master
sub esi, ebx
test dl, dl
je 0x1007ff7a
movzx eax, byte [esi + ebx + 1]
inc ebx
movzx ecx, byte [eax + 0x105f7750]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x105f7750]
sub eax, ecx
je 0x1007ff22
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1007fefb
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add ecx, ecx
push 0
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.10045b30
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1007ff45
jmp 0x1007fefe
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x10]
test esi, esi
jne 0x1007ff90
neg eax
sbb eax, eax
jmp 0x1007ffa0
test eax, eax
je 0x1007ff43
mov edx, eax
mov ecx, esi
call fcn.10044510
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x1007ff43
mov ebx, str.sqlite_temp_master
mov dword [ebp - 8], ebx
jmp 0x1007fe84
Function at 0x10080160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 8], ebx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x14], edx
jle 0x1008021e
push esi
mov eax, edi
mov ecx, edi
xor eax, 1
cmp edi, 2
cmovl ecx, eax
mov eax, dword [ebx + 0x10]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
test edx, edx
je 0x100801ff
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x105f7750]
movzx ecx, al
movzx ecx, byte [ecx + 0x105f7750]
sub ecx, edx
jne 0x100801e3
sub ebx, esi
test al, al
je 0x100801f8
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x105f7750]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x105f7750]
sub ecx, edx
je 0x100801c2
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
inc edi
cmp edi, dword [ebx + 0x14]
jl 0x10080181
pop esi
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x100801e3
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x18
push 0
call fcn.10045b30
add esp, 4
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x100801ef
jmp 0x100801e9
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ba0f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 0x160]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x164]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x38]
or eax, dword [ecx + 0x3c]
jne 0x100ba1e7
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 0x100ba1e7
jb 0x100ba13b
test eax, eax
jne 0x100ba1e7
push ebx
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
mov edx, dword [ecx + 0x174]
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x100ba196
test esi, esi
je 0x100ba184
mov al, byte [edi]
dec esi
xor byte [edx + ecx + 0x40], al
inc edi
inc edx
and edx, 0xf
mov dword [ebp - 4], edx
jne 0x100ba153
lea eax, [ecx + 0x60]
lea ebx, [ecx + 0x40]
mov dword [ebp - 0xc], eax
push eax
push ebx
call dword [ebp - 8]
mov eax, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x100ba19c
pop edi
pop ebx
mov dword [ecx + 0x174], edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ecx + 0x60]
lea ebx, [ecx + 0x40]
mov eax, esi
and eax, 0xfffffff0
mov dword [ebp - 0xc], eax
je 0x100ba1b6
push eax
push edi
push edx
push ebx
call dword [ebp - 0x10]
add edi, dword [ebp - 0xc]
add esp, 0x10
sub esi, dword [ebp - 0xc]
test esi, esi
je 0x100ba1cf
mov dword [ebp - 4], esi
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x100ba1c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
mov dword [eax + 0x174], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100baad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x170], 0
mov ecx, dword [esi + 0x160]
mov dword [ebp + 8], ecx
jne 0x100baaf4
cmp dword [esi + 0x174], 0
je 0x100bab01
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call ecx
add esp, 8
lea ebx, [esi + 0x40]
mov edi, 2
mov edx, ebx
nop dword [eax + eax]
mov ecx, dword [edx - 0x10]
lea edx, [edx + 8]
mov eax, dword [edx - 0x14]
shld eax, ecx, 3
shl ecx, 3
bswap eax
xor dword [edx - 8], eax
bswap ecx
xor dword [edx - 4], ecx
sub edi, 1
jne 0x100bab10
lea eax, [esi + 0x60]
push eax
push ebx
call dword [ebp + 8]
mov eax, dword [esi + 0x20]
add esp, 8
xor dword [ebx], eax
mov eax, dword [esi + 0x24]
xor dword [ebx + 4], eax
mov eax, dword [esi + 0x28]
xor dword [esi + 0x48], eax
mov eax, dword [esi + 0x2c]
xor dword [esi + 0x4c], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100bab75
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
ja 0x100bab75
push eax
push ecx
push ebx
call fcn.100be1e0
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x100bbc60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, dword [ebx + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [ebx + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [ebx + 0x1c]
xor dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
jbe 0x100bbcf8
push edi
lea edi, [ebx + 0x28]
lea ebx, [eax - 1]
push esi
call fcn.100bcdc0
push esi
call fcn.100bcc30
push esi
call fcn.100bc060
mov eax, dword [edi - 8]
lea edi, [edi + 0x20]
xor dword [esi], eax
add esp, 0xc
mov eax, dword [edi - 0x24]
xor dword [esi + 4], eax
mov eax, dword [edi - 0x20]
xor dword [esi + 8], eax
mov eax, dword [edi - 0x1c]
xor dword [esi + 0xc], eax
mov eax, dword [edi - 0x18]
xor dword [esi + 0x10], eax
mov eax, dword [edi - 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [edi - 0x10]
xor dword [esi + 0x18], eax
mov eax, dword [edi - 0xc]
xor dword [esi + 0x1c], eax
sub ebx, 1
jne 0x100bbca8
mov ebx, dword [ebp + 8]
pop edi
push esi
call fcn.100bcdc0
push esi
call fcn.100bcc30
mov ecx, dword [ebp + 0xc]
add esp, 8
shl ecx, 5
mov eax, dword [ecx + ebx]
xor dword [esi], eax
mov eax, dword [ecx + ebx + 4]
xor dword [esi + 4], eax
mov eax, dword [ecx + ebx + 8]
xor dword [esi + 8], eax
mov eax, dword [ecx + ebx + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ecx + ebx + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [ecx + ebx + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [ecx + ebx + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [ecx + ebx + 0x1c]
xor dword [esi + 0x1c], eax
pop esi
pop ebx
pop ebp
ret
Function at 0x100bbd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], 0
lea eax, [ebx + 0xf0]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
add eax, 8
movups xmm1, xmmword [ebx]
lea ebx, [ebx + 0x10]
lea eax, [eax + 0x20]
movaps xmm0, xmm1
movd ecx, xmm1
psrldq xmm0, 4
movd dword [eax - 0x20], xmm0
movaps xmm0, xmm1
mov dword [eax - 0x28], ecx
mov edi, ecx
shr edi, 1
psrldq xmm0, 8
movd dword [eax - 0x18], xmm0
psrldq xmm1, 0xc
movd dword [eax - 0x10], xmm1
movups xmm1, xmmword [ebx - 0x10]
movd edx, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
xor edi, edx
and edi, 0x55555555
lea ecx, [edi + edi]
xor edi, edx
xor dword [eax - 0x28], ecx
mov dword [eax - 0x24], edi
mov edi, dword [eax - 0x20]
shr edi, 1
movd edx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
xor edi, edx
and edi, 0x55555555
xor edx, edi
mov dword [eax - 0x1c], edx
movd edx, xmm0
lea ecx, [edi + edi]
mov edi, dword [eax - 0x18]
xor dword [eax - 0x20], ecx
shr edi, 1
xor edi, edx
and edi, 0x55555555
xor edx, edi
mov dword [eax - 0x14], edx
movd edx, xmm1
lea ecx, [edi + edi]
mov edi, dword [eax - 0x10]
xor dword [eax - 0x18], ecx
shr edi, 1
xor edi, edx
and edi, 0x55555555
xor edx, edi
mov dword [eax - 0xc], edx
mov edx, dword [ebp + 0xc]
lea ecx, [edi + edi]
xor dword [eax - 0x10], ecx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [edx]
jbe 0x100bbd70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bbe50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1060f098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.100bd2c0
xor edi, edi
add esp, 4
mov dword [ebp - 0x2c], edi
cmp dword [ebp + 0xc], edi
jbe 0x100bc04e
lea eax, [ecx + 8]
push ebx
mov dword [ebp - 0x30], eax
push esi
nop dword [eax + eax]
mov edx, dword [ebp + edi*4 - 0xc]
mov eax, dword [ebp + edi*4 - 0x14]
mov ecx, dword [ebp + edi*4 - 0x1c]
movzx eax, al
mov ebx, dword [ebp + edi*4 - 0x24]
movzx esi, dl
shl esi, 8
or esi, eax
mov dword [ebp - 0x28], ecx
movzx eax, cl
shl esi, 8
or esi, eax
movzx eax, bl
shl esi, 8
or esi, eax
mov ecx, esi
shr ecx, 0xc
xor ecx, esi
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor esi, eax
mov eax, esi
mov dword [ebp - 0x38], esi
shr eax, 6
xor eax, esi
and eax, 0xcc00cc
mov dword [ebp - 0x34], eax
mov eax, edx
shr eax, 8
movzx edx, al
mov eax, dword [ebp + edi*4 - 0x14]
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0x28]
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [ebp - 0x2c]
xor edx, eax
mov edi, edx
mov dword [ebp - 0x3c], edx
shr edi, 6
mov eax, dword [ebp + ecx*4 - 0xc]
xor edi, edx
shr eax, 0x10
and edi, 0xcc00cc
movzx esi, al
mov eax, dword [ebp + ecx*4 - 0x14]
shr eax, 0x10
movzx eax, al
shl esi, 8
or esi, eax
mov eax, dword [ebp - 0x28]
shr eax, 0x10
shl esi, 8
movzx eax, al
or esi, eax
mov eax, ebx
shr eax, 0x10
shl esi, 8
movzx eax, al
or esi, eax
mov ecx, esi
shr ecx, 0xc
xor ecx, esi
shr ebx, 8
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [ebp - 0x2c]
xor esi, eax
mov eax, dword [ebp - 0x28]
and eax, 0xff00ffff
mov edx, esi
or eax, ebx
shr edx, 6
mov dword [ebp - 0x28], eax
mov ebx, eax
mov eax, dword [ebp + ecx*4 - 0x14]
xor edx, esi
and eax, 0xff0000ff
shr ebx, 8
or ebx, eax
and edx, 0xcc00cc
mov eax, dword [ebp + ecx*4 - 0xc]
and eax, 0xff000000
shr ebx, 8
or ebx, eax
mov ecx, ebx
shr ecx, 0xc
xor ecx, ebx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor ebx, eax
mov eax, dword [ebp - 0x34]
shl eax, 6
mov ecx, ebx
xor eax, dword [ebp - 0x34]
xor eax, dword [ebp - 0x38]
shr ecx, 6
xor ecx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x30]
and ecx, 0xcc00cc
mov dword [ebx - 8], eax
mov eax, edi
shl eax, 6
xor eax, edi
mov edi, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x3c]
inc edi
mov dword [ebx - 4], eax
mov eax, edx
shl eax, 6
xor eax, edx
mov dword [ebp - 0x2c], edi
xor eax, esi
mov dword [ebx], eax
mov eax, ecx
shl eax, 6
xor eax, ecx
xor eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
add ebx, 0x10
mov dword [ebp - 0x30], ebx
cmp edi, dword [ebp + 0xc]
jb 0x100bbea0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100d22d5
mov esp, ebp
pop ebp
ret
Function at 0x100bc330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1060f098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push edi
push dword [ebp + 0xc]
push eax
mov dword [esi + 0xf0], 0xa
call fcn.100bb920
movups xmm0, xmmword [ebp - 0x14]
add esp, 8
mov ebx, 1
movups xmmword [esi], xmm0
add esi, 0x10
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x14]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x10]
shr edx, 1
and edx, 0x55555555
shr esi, 1
movups xmmword [ebp - 0x48], xmm0
xor dword [ebp - 0x44], edx
movups xmmword [ebp - 0x38], xmm0
lea eax, [edx + edx]
mov edx, dword [ebp - 0x3c]
xor esi, edx
psrldq xmm0, 4
xor eax, dword [ebp - 0x14]
and esi, 0x55555555
xor edx, esi
mov dword [ebp - 0x48], eax
movd ecx, xmm0
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x2c]
lea eax, [esi + esi]
mov esi, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
shr esi, 1
xor esi, ecx
mov dword [ebp - 0x40], eax
and esi, 0x55555555
xor ecx, esi
mov dword [ebp - 0x34], ecx
lea eax, [esi + esi]
mov esi, dword [ebp - 8]
xor eax, dword [ebp - 0xc]
shr esi, 1
xor esi, edx
mov dword [ebp - 0x38], eax
and esi, 0x55555555
xor edx, esi
mov dword [ebp - 0x2c], edx
lea eax, [esi + esi]
xor eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
call fcn.100bcdc0
mov eax, dword [ebp - 0x44]
add esp, 4
mov edi, dword [ebp - 0x48]
add eax, eax
mov esi, dword [ebp - 0x40]
xor eax, edi
mov edx, dword [ebp - 0x38]
and eax, 0xaaaaaaaa
xor edi, eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
add eax, eax
mov dword [ebp - 0x24], edi
xor eax, esi
movzx edi, byte [ebx + 0x1011921f]
and eax, 0xaaaaaaaa
xor esi, eax
mov eax, dword [ebp - 0x34]
add eax, eax
mov dword [ebp - 0x20], esi
xor eax, edx
and eax, 0xaaaaaaaa
xor edx, eax
mov eax, dword [ebp - 0x2c]
add eax, eax
mov dword [ebp - 0x1c], edx
xor eax, ecx
and eax, 0xaaaaaaaa
xor ecx, eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + eax*4 - 0x24]
mov edx, edi
mov esi, ecx
shr ecx, 8
and esi, 0x3000000
or esi, ecx
mov cl, al
add cl, cl
shr esi, 0x12
shr edx, cl
and edx, 3
xor esi, edx
xor esi, dword [ebp + eax*4 - 0x14]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [ebp + eax*4 - 0x14], ecx
inc eax
cmp eax, 4
jb 0x100bc458
mov eax, dword [ebp - 0x28]
inc ebx
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [ebp - 0x28], eax
cmp ebx, 0xa
jbe 0x100bc371
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d22d5
mov esp, ebp
pop ebp
ret
Function at 0x100be1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
xor ecx, ecx
push ebx
xor bl, bl
test edx, edx
je 0x100be29c
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp edx, 0x20
jb 0x100be27a
mov eax, dword [ebp + 8]
mov edi, edx
mov ebx, esi
and edi, 0xffffffe0
add eax, 0x10
xorps xmm3, xmm3
sub ebx, dword [ebp + 8]
xorps xmm2, xmm2
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + esi]
add ecx, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ebx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x100be213
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
cmp ecx, edx
jae 0x100be294
mov edi, dword [ebp + 8]
sub esi, edi
sub edx, ecx
lea eax, [ecx + edi]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x100be284
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x100be350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1060f098]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 3
jne 0x100be40c
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x100be5e0
push eax
push 0x100be5c0
push 0x10614498
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100be41c
cmp dword [0x106144a0], 0
jne 0x100be40c
push edi
push dword [0x1061449c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x100be40b
push ebx
push esi
push 0x10614488
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movq xmm0, qword [0x1061448c]
mov ecx, dword [0x10614494]
push 0x10614488
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea ebx, [ebp - 0x10]
mov esi, edi
sub ebx, edi
mov edi, 3
mov eax, dword [ebx + esi]
test eax, eax
je 0x100be3f6
push dword [esi]
call eax
add esp, 4
add esi, 4
sub edi, 1
jne 0x100be3e8
push dword [ebp - 0x14]
call fcn.100be2b0
add esp, 4
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d22d5
mov esp, ebp
pop ebp
ret 0xc
call fcn.100f1d46
int3
Function at 0x100be4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100be5e0
push eax
push 0x100be5c0
push 0x10614498
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x100be5ba
cmp dword [0x106144a0], 0
push esi
push edi
jne 0x100be5a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x1061449c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x100be56f
push 0xc
call fcn.100be310
mov edi, eax
add esp, 4
test edi, edi
je 0x100be5a9
push edi
push dword [0x1061449c]
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100be56f
push edi
call fcn.100be2b0
push dword [ebp + 0xc]
call dword [ebp + 0x10]
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x10614488
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebp + 8]
push 0x10614488
lea esi, [eax*4]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1061448c], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [esi + edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
call dword [ebp + 0x10]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100f1d46
int3

Function at 0x100d536f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10100ccd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10100974

Function at 0x10100cd8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10100afe
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040d20a
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040d20a
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040d20a
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040d20a
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040d20a
mov dword [0x41203c], eax
call fcn.0040d20a
test eax, eax
jge 0x402550
push 8
call fcn.0040d20a
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040d20a
pop ecx
push 1
call fcn.0040d20a
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040d20a
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040d20a
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040d20a
jmp 0x402495

Function at 0x40d20a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40d219
pop dword [ebp - 0xc]
mov eax, 0x5963805d
add eax, 0xa6dd51bc
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x34d24
push 0
mov eax, 0x1042521d
add eax, 0xeffe8ebb
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x85869494
sub ecx, 0x85865eaa
mov edi, eax
mov ebx, 0x9415c551
add ebx, 0x6c2b7673
add ebx, dword [ebp - 0xc]
mov esi, 0x92fb499f
add esi, 0xaa18772c
add dword [ebp - 8], esi
mov edx, dword [ebx]
sub dword [ebp - 4], 0xb549c492
sub edx, esi
xor dword [ebp - 8], 0xc440c7b1
mov dword [edi], edx
sub dword [ebp - 4], ecx
add edi, 4
add ebx, 0x3a849646
sub ebx, 0x3a849642
loop 0x40d278
add eax, 0x4a97d792
sub eax, 0x4a970d17
xor ebx, ebx
add ebx, eax
add eax, 0xeceb7a7d
sub eax, 0xeceb7a78
mov ecx, 0xde230da
sub ecx, 0xda230da
add ecx, dword [ebp - 0xc]
call ebx
leave
ret