joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bc80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x639e38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.CSnakeNB.0
push 0x1e4
call fcn.0055b9a8
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x45bce7
push 1
push 1
push 1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004df810
mov dword [ebp - 0x1c], eax
jmp 0x45bcee
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x24]
mov dword [edx + 0x60], eax
mov edi, dword [ebp - 0x18]
add edi, 0x18
mov ecx, 0xc
lea esi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x18]
fld qword [ebp + 0xc]
fstp qword [ecx + 8]
fld qword [ebp + 0x14]
fchs
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x48]
fstp qword [ebp - 0x24]
call fcn.004e0520
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
fild qword [ebp - 0x2c]
fadd qword [ebp - 0x24]
fsub qword [0x5e5328]
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x10]
mov ecx, dword [ebp - 0x18]
fld qword [ecx + 0x20]
fchs
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x48]
fstp qword [ebp - 0x34]
call fcn.004e0520
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
fild qword [ebp - 0x3c]
fadd qword [ebp - 0x34]
fsub qword [0x5e5328]
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x20]
mov ecx, dword [ebp - 0x18]
fld qword [ecx + 0x30]
fchs
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x48]
fstp qword [ebp - 0x44]
call fcn.004e0520
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
fild qword [ebp - 0x4c]
fadd qword [ebp - 0x44]
fsub qword [0x5e5328]
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x30]
mov ecx, dword [ebp - 0x18]
fld qword [ecx + 0x40]
fchs
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x48]
fstp qword [ebp - 0x54]
call fcn.004e0520
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
fild qword [ebp - 0x5c]
fadd qword [ebp - 0x54]
fsub qword [0x5e5328]
mov eax, dword [ebp - 0x18]
fstp qword [eax + 0x40]
mov ecx, dword [ebp - 0x18]
fld qword [ebp + 0x1c]
fstp qword [ecx + 0x68]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x58], 0
push 0x384
fld qword [ebp + 0x1c]
call fcn.0055c6e0
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0045bf30
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x50
Function at 0x4fa360
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x4fa3a2
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x4fa37a
cmp ax, word [esi + 0x14]
jne 0x4fa3a2
mov si, word [esi + 0xe]
test si, si
jbe 0x4fa3a2
cmp si, 0x9ec
ja 0x4fa3a2
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x4ff780
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.004e0520
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x4ff7b2
mov dword [esp + 0x2c], 0
jmp 0x4ff7cd
mov ecx, ebp
call fcn.004e0520
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.004e0520
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.004e0530
cmp eax, esi
jae 0x4ff80d
mov ecx, ebp
call fcn.004e0530
mov dword [esp + 0x10], eax
jmp 0x4ff811
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.004e0330
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4ff87d
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4ff878
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.004e0880
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x4ff86b
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.004e0c60
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4ff838
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x4ff826
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x57e220
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x57e267
mov eax, dword [ebp + 8]
push eax
call fcn.0057ed70
add esp, 4
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x40]
test ecx, ecx
je 0x57e25d
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcf
mov al, 1
jmp 0x57e383
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcb
jne 0x57e341
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
movzx edx, byte [ecx + 0x10]
test edx, edx
je 0x57e330
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x57e2a6
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
call eax
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
mov eax, dword [edx]
call eax
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x57e2ca
xor al, al
jmp 0x57e383
cmp dword [ebp - 4], 2
jne 0x57e2d2
jmp 0x57e330
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x57e32b
cmp dword [ebp - 4], 3
je 0x57e2e7
cmp dword [ebp - 4], 1
jne 0x57e32b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 8]
jl 0x57e32b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x11c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [eax + 8], edx
jmp 0x57e28c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7c]
mov dword [eax + 0x84], edx
jmp 0x57e377
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x57e377
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.0057e390
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57e390
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x57e3cd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
mov eax, dword [edx]
call eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
movzx edx, byte [ecx + 8]
test edx, edx
je 0x57e49a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x78]
cmp edx, dword [ecx + 0x60]
jae 0x57e462
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x57e428
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
call eax
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 8]
add eax, 0x78
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x184]
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x57e460
xor al, al
jmp 0x57e4b5
jmp 0x57e3e2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
mov eax, dword [edx + 4]
call eax
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
mov eax, dword [edx]
call eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
jmp 0x57e3cd
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x41]
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001690
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, 0x540b648
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
add esi, 0xfffffffe
xor ecx, ecx
test esi, esi
jle 0x10001722
jmp 0x100016c0
movzx edi, byte [edx + ecx]
shr edi, 2
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax], bl
movsx edi, byte [edx + ecx]
movzx ebx, byte [edx + ecx + 1]
and edi, 3
shr ebx, 4
shl edi, 4
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 1], bl
movsx ebx, byte [edx + ecx + 1]
movzx edi, byte [edx + ecx + 2]
and ebx, 0xf
add ebx, ebx
shr edi, 6
add ebx, ebx
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 2], bl
movsx edi, byte [edx + ecx + 2]
and edi, 0x3f
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 3], bl
add ecx, 3
add eax, 4
cmp ecx, esi
jl 0x100016c0
cmp ecx, dword [ebp + 8]
jge 0x1000179e
movzx esi, byte [ecx + edx]
shr esi, 2
mov bl, byte [ebp + esi - 0x44]
mov esi, dword [ebp + 8]
dec esi
mov byte [eax], bl
cmp ecx, esi
jne 0x10001761
movsx ecx, byte [ecx + edx]
and ecx, 3
add ecx, ecx
mov dl, byte [ebp + ecx*8 - 0x44]
mov byte [eax + 1], dl
pop edi
mov byte [eax + 2], 0x3d
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ecx + edx + 1]
movsx ecx, byte [ecx + edx]
movzx edx, byte [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x44]
mov byte [eax + 1], cl
movsx edx, byte [esi]
and edx, 0xf
movzx ecx, byte [ebp + edx*4 - 0x44]
pop edi
mov byte [eax + 2], cl
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10009fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x54153f4
mov dword [ebp - 4], 0x10
call dword [0x540b09c]
push 0x54153f4
call dword [0x540b0a0]
or ecx, 0xffffffff
mov edx, 0x54153f4
test eax, eax
je 0x1000a00d
movzx esi, byte [edx]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x5414568]
inc edx
dec eax
jne 0x10009ff4
mov edi, dword [0x540b4a4]
not ecx
mov esi, ecx
push esi
push 0x5414290
push 0x541540c
call edi
lea ebx, [esi + esi]
push ebx
push 0x5414290
push 0x54153b8
call edi
lea ecx, [esi + esi*2]
push ecx
push 0x5414290
push 0x5415448
call edi
push esi
push 0x54142a8
push 0x54154dc
call edi
push ebx
push 0x54142a8
push 0x541549c
call edi
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x101
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [0x540b4bc]
mov edx, eax
or eax, 0xffffffff
lea ecx, [ebp - 0x104]
test edx, edx
je 0x1000a29a
push esi
lea esp, [esp]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5414568]
inc ecx
dec edx
jne 0x1000a280
pop esi
not eax
mov esp, ebp
pop ebp
ret
Function at 0x1000a310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x541f834]
sub esp, 0x104
push ebx
mov ebx, dword [0x540b384]
push esi
push edi
push 1
push 5
push eax
call ebx
push eax
call ebx
mov edi, dword [0x540b3c4]
mov esi, eax
lea esp, [esp]
push esi
call dword [0x540b3c0]
test eax, eax
je 0x1000a3d7
push 0xfffffffffffffff0
push esi
call dword [0x540b3f0]
test eax, 0x40000000
jne 0x1000a3bc
push 0x101
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [0x540b4bc]
or ecx, 0xffffffff
lea edx, [ebp - 0x104]
test eax, eax
je 0x1000a39f
nop
movzx ebx, byte [edx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x5414568]
inc edx
dec eax
jne 0x1000a380
mov ebx, dword [0x540b384]
not ecx
test ecx, ecx
je 0x1000a3b6
xor eax, eax
cmp ecx, dword [eax*8 + 0x5414238]
je 0x1000a3ed
inc eax
cmp eax, 0xb
jb 0x1000a3a7
xor eax, eax
test al, 0x20
je 0x1000a3d7
push 0
push 0x1b
push 0x100
push esi
call edi
push 0xc01b0000
push 0x1b
push 0x101
push esi
call edi
push 3
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x1000a340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax*8 + 0x541423c]
jmp 0x1000a3b8

Function at 0x10013550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
jle 0x100135e3
mov ecx, dword [ebp + 8]
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x10013574
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
movzx edx, byte [edi + eax]
add edi, eax
mov byte [ebp + 0xf], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xf]
mov dword [ebp - 0x10], edi
movzx edi, dl
mov bl, byte [edi + eax]
add edi, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
mov edi, dword [ebp - 0x14]
mov byte [ebp + 0xb], bl
movzx ebx, byte [ebp + 0xf]
mov byte [edi], bl
movzx ebx, byte [ebp + 0xf]
movzx edi, byte [ebp + 0xb]
add edi, ebx
mov bl, byte [ebp - 1]
and edi, 0xff
xor bl, byte [edi + eax]
inc cl
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x10013571
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f020
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x1001f243
cmp dword [ebp + 8], eax
je 0x1001f243
cmp dword [ebp + 0xc], eax
je 0x1001f243
push ebx
mov ebx, dword [0x540b244]
push edi
xor edi, edi
push esi
call fcn.1001f930
test eax, eax
jne 0x1001f066
push 0x64
call ebx
inc edi
cmp edi, 0x1e
jl 0x1001f052
push esi
call fcn.1001f930
test eax, eax
je 0x1001f23e
push esi
push 0
push 0x1f0fff
call dword [0x540b1d0]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x1001f23e
push 0x540b5e8
mov dword [ebp + 0xc], 0
call dword [0x540b194]
mov esi, dword [0x540b18c]
test eax, eax
je 0x1001f0c6
push 0x540fc94
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x1001f0c6
lea eax, [ebp + 0xc]
push eax
call dword [0x540b1a8]
push eax
call ebx
cmp dword [ebp + 0xc], 0
je 0x1001f0ff
push 0x540b5e8
mov dword [ebp + 0xc], 0
call dword [0x540b194]
test eax, eax
je 0x1001f0f5
push 0x540fc94
push eax
call esi
test eax, eax
je 0x1001f0f5
lea ecx, [ebp + 0xc]
push ecx
push edi
call eax
cmp dword [ebp + 0xc], 0
je 0x1001f237
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x3c]
add ebx, eax
xor edx, edx
push 0x40
mov dword [ebx + 0x58], 0
mov word [eax], dx
mov eax, dword [ebx + 0x50]
push 0x3000
push eax
push edx
push edi
mov dword [ebx], edx
call dword [0x540b128]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1001f237
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push esi
push edi
call dword [0x540b120]
movzx eax, word [ebx + 0x14]
xor ecx, ecx
lea eax, [eax + ebx + 0x18]
mov dword [ebp + 0xc], 0
cmp cx, word [ebx + 6]
jae 0x1001f1ce
lea esi, [eax + 8]
mov edx, dword [esi]
push 4
push 0x3000
push edx
push 0
call dword [0x540b1bc]
mov edi, eax
test edi, edi
je 0x1001f1b6
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add ecx, dword [ebp + 8]
push eax
push ecx
push edi
call fcn.1003a952
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add ecx, dword [ebp - 8]
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0xc]
push eax
push edi
push ecx
push edx
call dword [0x540b120]
push 0x8000
push 0
push edi
call dword [0x540b1b4]
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebx + 6]
inc eax
add esi, 0x28
mov dword [ebp + 0xc], eax
cmp eax, ecx
jl 0x1001f163
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebx + 0x28]
push 0
push 0
push edi
add ebx, esi
call dword [0x540b160]
push 0
push 0
push 0
push ebx
push 0
push 0
push edi
call dword [0x540b134]
test eax, eax
je 0x1001f215
push eax
call dword [0x540b1e4]
push edi
mov dword [ebp - 4], 1
call dword [0x540b1e4]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
call dword [0x540b5a0]
xor edx, edx
test eax, eax
setns dl
mov dword [ebp - 4], edx
push edi
call dword [0x540b1e4]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100219d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x10021beb
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x10021a57
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10021a97
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x10021a97
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x10021a82
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.100216f0
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x10021a97
mov ebx, eax
mov eax, dword [esi + 0x6af84]
push esi
cmp ebx, 3
jb 0x10021b7b
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.10020ed0
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x10021b44
cmp ecx, 3
jb 0x10021b44
mov edi, 1
sub ebx, edi
jmp 0x10021ae0
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x10021ae0
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x10021b96
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x10021b96
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.10020ed0
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x10021bcd
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10021bad
lea ecx, [eax + esi + 0x1af70]
jmp 0x10021baf
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 0
sub edi, eax
push ecx
mov eax, esi
call fcn.10020d20
mov ecx, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x10021bde
call fcn.10021890
cmp dword [esi + 0x6af90], 0
jne 0x10021a00
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x10021bfe
lea ecx, [eax + esi + 0x1af70]
jmp 0x10021c00
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 1
sub edi, eax
push ecx
mov eax, esi
call fcn.10020d20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100227d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100227e0
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x100228af
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x540dae0]
add ecx, 8
sub edx, 8
dec esi
jne 0x100227f2
pop edi
test edx, edx
je 0x100228cc
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x540dae0]
inc ecx
dec edx
jne 0x100228b3
not eax
pop esi
pop ebp
ret 4