joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58a8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push edi
xor edi, edi
cmp eax, edi
je 0x58a8cd
push eax
call fcn.0052eb6c
add esp, 4
mov dword [ebx + 4], edi
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x58a8e0
push eax
call fcn.0052eb6c
add esp, 4
mov dword [ebx + 8], edi
movzx eax, word [ebp + 0xc]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
jne 0x58a8fa
pop edi
xor al, al
pop ebx
pop ebp
ret 8
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, edi
jne 0x58a91c
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
push 0x428
call fcn.0051b9c2
mov dword [ebx + 4], eax
mov edi, eax
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add esp, 4
add esi, 0x28
mov dword [ebx + 0x10], ecx
cmp word [eax + 0xe], 0x10
jae 0x58a95a
test ecx, ecx
jne 0x58a95a
mov ecx, pe_nt_image_headers32
mov dword [ebx + 0x10], ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
add ecx, ecx
add ecx, ecx
push ecx
add edx, 0x28
push esi
push edx
call fcn.0052d910
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x10]
add esp, 0xc
cmp dword [ecx + 0x14], 0
lea esi, [esi + eax*4]
jne 0x58a9ab
mov eax, dword [ecx + 4]
add eax, 3
cdq
and edx, 3
add eax, edx
movzx edx, word [ecx + 0xe]
sar eax, 2
imul eax, edx
imul eax, dword [ecx + 8]
add eax, eax
add eax, eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0051b9c2
mov edx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov ecx, dword [edx + 0x14]
push ecx
push esi
push eax
call fcn.0052d910
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 4]
mov dword [ebx + 0x20], edx
mov eax, dword [ecx + 8]
mov dword [ebx + 0x24], eax
mov edx, dword [ecx + 0x14]
mov dword [ebx + 0x28], edx
movzx eax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 0x10
add eax, eax
add eax, eax
mov dword [ebx + 0x2c], eax
movzx eax, word [ecx + 0xe]
pop esi
mov dword [ebx + 0x30], eax
pop edi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x58b880
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ceee5
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x58b8b9
push eax
call fcn.0052eb6c
add esp, 4
mov dword [ebx + 4], edi
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x58b8cc
push eax
call fcn.0052eb6c
add esp, 4
mov dword [ebx + 8], edi
mov dword [esp + 0x10], vtable.CFile.0
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
lea esi, [esp + 0x10]
mov dword [esp + 0x74], edi
call fcn.005ac630
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x58b8f8
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x58b943
lea esi, [esp + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], vtable.CFile.0
call fcn.005ac630
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
add eax, edi
adc ecx, dword [esp + 0xc]
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
push edi
lea esi, [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], ecx
call fcn.0058b5e0
mov bl, al
mov dword [esp + 0x10], vtable.CFile.0
call fcn.005ac630
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x591ba0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ceb9a
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x114]
push edi
call edx
mov eax, dword [esi + 0x60]
cmp eax, dword [0x692400]
jne 0x591be4
test eax, eax
je 0x591be4
call fcn.0058dd40
test byte [esi + 0x38], 1
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
je 0x591c3b
push 0
push 0x688584
push 0x6820e0
push 0
push edi
call fcn.0052e9f2
add esp, 0x14
test eax, eax
je 0x591c3b
test dword [eax + 0x38], 0x10000
je 0x591c3b
test bl, 2
je 0x591c22
cmp dword [0x6923f4], 0
je 0x591c3b
test ebx, 0x1000
je 0x591d3a
cmp dword [0x6923f0], 0
jne 0x591d3a
test bl, 0x20
je 0x591d3a
cmp dword [0x6923ec], 0
jne 0x591d3a
lea eax, [esp + 0x20]
push eax
call fcn.00582030
lea ecx, [esp + 0x80]
push ecx
mov edi, esi
mov dword [esp + 0xf0], 0
call fcn.00582030
fld dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
mov byte [esp + 0xf8], 1
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
sub esp, 8
fstp dword [esp + 4]
lea ecx, [esp + 0x34]
fld dword [ebp + 0xc]
fstp dword [esp]
push ecx
mov ecx, eax
call edx
mov esi, vtable.CMemorySurfaceSupport.0
mov dword [esp + 0x80], esi
mov byte [esp + 0xec], 2
mov ecx, dword [esp + 0xdc]
xor edi, edi
cmp ecx, edi
je 0x591ccf
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], edi
mov byte [esp + 0xec], 0
call fcn.0059bf80
mov dword [esp + 0x20], esi
mov dword [esp + 0xec], 3
mov ecx, dword [esp + 0x7c]
cmp ecx, edi
je 0x591d0b
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0xec], 0xffffffff
call fcn.0059bf80
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
fld dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
fst dword [esp + 0x10]
fld dword [ebp + 0x10]
mov edx, dword [esi]
fst dword [esp + 0x14]
mov edx, dword [edx + 0x48]
fld dword [eax + 8]
push ecx
fsub dword [eax]
push ebx
push eax
mov ecx, esi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [eax + 0xc]
fsub dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
push edi
fstp dword [esp + 0x20]
fadd dword [esp + 0x20]
fstp dword [esp + 0x30]
call edx
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x593230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x24]
test edi, edi
jg 0x593269
mov edx, dword [ebp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x198]
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
call eax
pop edi
mov esp, ebp
pop ebp
ret 0x20
cmp edi, 0x100
jl 0x5932a3
mov eax, dword [ebp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x19c]
push 0xffffff
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call edx
pop edi
mov esp, ebp
pop ebp
ret 0x20
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
jle 0x593346
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea ecx, [eax*4]
lea eax, [edx*4]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x18], ecx
push ebx
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx + esi*4]
add ecx, dword [ebp + 0x18]
xor edx, edx
test eax, eax
jle 0x593336
nop
mov esi, dword [ecx]
mov eax, esi
not eax
mov ebx, eax
and ebx, 0xffff00ff
imul ebx, edi
mov edi, eax
and edi, 0xff00
imul edi, dword [ebp + 0x24]
xor ebx, edi
mov edi, dword [ebp + 0x24]
and eax, 0xff00ff
imul eax, edi
and ebx, 0xff0000
xor ebx, eax
mov eax, dword [ebp + 8]
shr ebx, 8
add ebx, esi
mov dword [eax], ebx
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + edx*4]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp + 0xc]
inc edx
cmp edx, eax
jl 0x5932e0
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
add dword [ebp + 8], ecx
inc esi
mov dword [ebp - 4], esi
cmp esi, dword [ebp + 0x10]
jl 0x5932d0
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x593350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x24]
test esi, esi
jg 0x593388
mov edx, dword [ebp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x19c]
push 0
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
call eax
pop esi
pop ebp
ret 0x20
cmp esi, 0x100
jl 0x5933bb
mov eax, dword [ebp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x198]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call edx
pop esi
pop ebp
ret 0x20
xor eax, eax
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x10], eax
jle 0x593467
mov ecx, dword [ebp + 0x18]
lea edx, [ecx*4]
mov ecx, dword [ebp + 0x14]
push ebx
mov dword [ebp + 0x18], edx
lea edx, [ecx*4]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x14], edx
jmp 0x5933f0
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp + 0x18]
xor edx, edx
test edi, edi
jle 0x593456
nop
mov eax, dword [ecx]
mov edi, eax
and edi, 0xffff00ff
mov ebx, eax
imul edi, esi
and ebx, 0xff00
imul ebx, esi
xor edi, ebx
mov ebx, eax
and ebx, 0xff00ff
imul ebx, esi
and edi, 0xff0000
xor edi, ebx
and eax, 0xff000000
shr edi, 8
or edi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edi, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + edx*4]
inc edx
lea ecx, [ecx + eax*4]
cmp edx, edi
jl 0x593400
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
add dword [ebp + 8], ecx
inc eax
mov dword [ebp + 0x24], eax
cmp eax, dword [ebp + 0x10]
jl 0x5933f0
pop edi
pop ebx
pop esi
pop ebp
ret 0x20
Function at 0x593510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x24]
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 1], al
mov edx, ecx
xor eax, eax
sar edx, 8
mov byte [ebp - 2], dl
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], eax
jle 0x59364a
mov edx, dword [ebp + 0x18]
add edx, edx
add edx, edx
mov dword [ebp + 0x18], edx
mov edx, dword [ebp + 0x14]
push ebx
add edx, edx
add edx, edx
push esi
mov dword [ebp - 0x14], edx
push edi
mov edi, edi
mov edx, dword [ebp + 0x20]
mov esi, dword [edx + eax*4]
add esi, dword [ebp + 0x18]
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x593634
movzx edx, byte [ebp - 2]
movzx eax, cl
movzx ecx, byte [ebp - 1]
mov dword [ebp + 0x14], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
jmp 0x593580
mov ebx, dword [esi]
movzx ecx, bl
imul ecx, dword [ebp + 0x14]
mov eax, 0x80808081
mul ecx
shr edx, 7
mov ecx, edx
mov edx, ebx
and edx, 0xff0000
imul edx, dword [ebp - 0xc]
mov eax, 0x80808081
mul edx
shr edx, 7
and edx, 0xff0000
and ecx, 0xff
or ecx, edx
mov edx, ebx
and edx, 0xff00
imul edx, dword [ebp - 0x10]
mov eax, 0x80808081
mul edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
not eax
shr edx, 7
and edx, 0xff00
or ecx, edx
mov edx, eax
xor eax, ecx
and eax, 0xfefefe
and edx, ecx
lea eax, [eax + edx*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov edx, eax
or edx, ecx
mov ecx, dword [ebp + 8]
or eax, dword [ecx]
add ecx, 4
sub eax, edx
mov edx, dword [ebp + 0x1c]
xor eax, ebx
and eax, 0xffffff
xor eax, ebx
mov dword [ecx - 4], eax
mov eax, dword [edx + edi*4]
inc edi
mov dword [ebp + 8], ecx
lea esi, [esi + eax*4]
cmp edi, dword [ebp + 0xc]
jl 0x593580
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add dword [ebp + 8], edx
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x10]
jl 0x593550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x593650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x24]
sub esp, 0x18
test ecx, ecx
je 0x593793
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 1], al
mov edx, ecx
xor eax, eax
sar edx, 8
mov byte [ebp - 2], dl
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], eax
jle 0x593793
mov edx, dword [ebp + 0x18]
add edx, edx
add edx, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x14]
push ebx
add edx, edx
add edx, edx
push esi
mov dword [ebp - 0x18], edx
push edi
mov edx, dword [ebp + 0x20]
mov edi, dword [edx + eax*4]
add edi, dword [ebp - 0xc]
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x18], 0
jle 0x59377d
movzx edx, byte [ebp - 2]
movzx eax, cl
movzx ecx, byte [ebp - 1]
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov ebx, dword [edi]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
movzx ecx, bl
imul ecx, dword [ebp + 0x14]
mov eax, 0x80808081
mul ecx
shr edx, 7
mov ecx, edx
mov edx, ebx
and edx, 0xff0000
imul edx, dword [ebp - 0x10]
mov eax, 0x80808081
mul edx
shr edx, 7
and edx, 0xff0000
and ecx, 0xff
or ecx, edx
mov edx, ebx
and edx, 0xff00
imul edx, dword [ebp - 0x14]
mov eax, 0x80808081
mul edx
shr edx, 7
and edx, 0xff00
or ecx, edx
mov edx, ecx
mov eax, ecx
and eax, esi
xor edx, esi
and edx, 0xfefefe
lea eax, [edx + eax*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
sub ecx, eax
add ecx, esi
or ecx, eax
mov eax, dword [ebp + 8]
xor ecx, ebx
and ecx, 0xffffff
xor ecx, ebx
mov dword [eax], ecx
mov ecx, dword [ebp + 0x1c]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ecx + eax*4]
inc eax
lea edi, [edi + edx*4]
mov dword [ebp + 0x18], eax
cmp eax, dword [ebp + 0xc]
jl 0x5936c4
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
add dword [ebp + 8], edx
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x10]
jl 0x593696
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x5938a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x24]
test eax, eax
jle 0x5939a5
cmp eax, 0x100
jle 0x5938be
mov eax, pe_nt_image_headers32
mov dword [ebp + 0x24], eax
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], edx
jle 0x5939a5
mov ecx, dword [ebp + 0x18]
add ecx, ecx
add ecx, ecx
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
add ecx, ecx
push ebx
add ecx, ecx
push esi
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov esi, dword [ebp + 0x20]
mov esi, dword [esi + edx*4]
add esi, dword [ebp + 0x18]
xor edi, edi
test ecx, ecx
jle 0x59398f
lea esp, [esp]
mov edx, dword [esi]
mov ecx, edx
and ecx, 0xffff00ff
imul ecx, eax
mov ebx, edx
and ebx, 0xff00
imul ebx, eax
xor ecx, ebx
mov ebx, edx
and ebx, 0xff00ff
imul ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
not eax
and ecx, 0xff0000
xor ecx, ebx
mov ebx, eax
shr ecx, 8
xor eax, ecx
and eax, 0xfefefe
and ebx, ecx
lea eax, [eax + ebx*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov ebx, eax
or ebx, ecx
mov ecx, dword [ebp + 8]
or eax, dword [ecx]
add ecx, 4
sub eax, ebx
xor eax, edx
and eax, 0xffffff
xor eax, edx
mov edx, dword [ebp + 0x1c]
mov dword [ecx - 4], eax
mov eax, dword [edx + edi*4]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0xc]
inc edi
lea esi, [esi + eax*4]
mov eax, dword [ebp + 0x24]
cmp edi, ecx
jl 0x593900
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x14]
add dword [ebp + 8], esi
inc edx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 0x10]
jl 0x5938e6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x5939b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x24]
test ebx, ebx
jle 0x593ac6
cmp ebx, 0x100
jle 0x5939d2
mov ebx, pe_nt_image_headers32
mov dword [ebp + 0x24], ebx
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], eax
jle 0x593ac6
mov ecx, dword [ebp + 0x18]
lea edx, [ecx*4]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], edx
lea edx, [ecx*4]
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp + 0x14], edx
mov edx, dword [ebp + 0xc]
push edi
mov esi, dword [ebp + 0x20]
mov edi, dword [esi + eax*4]
add edi, dword [ebp - 8]
mov dword [ebp + 0x18], 0
test edx, edx
jle 0x593ab1
lea ebx, [ebx]
mov esi, dword [ecx]
mov edx, dword [edi]
mov eax, edx
and eax, 0xffff00ff
imul eax, ebx
mov ecx, edx
and ecx, 0xff00
imul ecx, ebx
xor eax, ecx
mov ecx, edx
and ecx, 0xff00ff
imul ecx, ebx
and eax, 0xff0000
xor eax, ecx
shr eax, 8
mov ebx, eax
mov ecx, eax
and ecx, esi
xor ebx, esi
and ebx, 0xfefefe
lea ecx, [ebx + ecx*2]
shr ecx, 8
mov ebx, dword [ebp + 0x24]
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, esi
or eax, ecx
mov ecx, dword [ebp + 8]
xor eax, edx
and eax, 0xffffff
xor eax, edx
mov edx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [edx + eax*4]
lea edi, [edi + edx*4]
mov edx, dword [ebp + 0xc]
inc eax
add ecx, 4
mov dword [ebp + 8], ecx
mov dword [ebp + 0x18], eax
cmp eax, edx
jl 0x593a20
mov eax, dword [ebp - 4]
add ecx, dword [ebp + 0x14]
inc eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0x10]
jl 0x593a02
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x5953a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x1c]
test edx, edx
jle 0x595442
push esi
cmp edx, 0x100
jl 0x5953bc
mov ecx, dword [ebp + 0x14]
jmp 0x5953ea
mov eax, dword [ebp + 0x14]
mov ecx, eax
and ecx, 0xff00
mov esi, eax
imul ecx, edx
and esi, 0xffff00ff
imul esi, edx
and eax, 0xff00ff
imul eax, edx
xor ecx, esi
and ecx, 0xff0000
xor ecx, eax
shr ecx, 8
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x595440
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea edx, [eax*4]
mov dword [ebp + 0x14], edx
push ebx
mov edx, dword [esi]
mov eax, edx
not eax
mov ebx, eax
xor eax, ecx
and eax, 0xfefefe
and ebx, ecx
lea eax, [eax + ebx*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov ebx, eax
or ebx, edx
or eax, ecx
sub ebx, eax
and ebx, 0xffffff
mov dword [esi], ebx
add esi, dword [ebp + 0x14]
dec edi
jne 0x595403
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
Function at 0x595450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jle 0x5954f1
push esi
cmp ecx, 0x100
jl 0x59546c
mov edx, dword [ebp + 0x14]
jmp 0x59549a
mov eax, dword [ebp + 0x14]
mov edx, eax
and edx, 0xff00
mov esi, eax
imul edx, ecx
and esi, 0xffff00ff
imul esi, ecx
and eax, 0xff00ff
imul eax, ecx
xor edx, esi
and edx, 0xff0000
xor edx, eax
shr edx, 8
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x5954ef
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea ecx, [eax*4]
mov dword [ebp + 0x14], ecx
push ebx
mov eax, dword [esi]
mov ecx, eax
xor ecx, edx
mov ebx, eax
and ecx, 0xfefefe
and ebx, edx
lea ecx, [ecx + ebx*2]
shr ecx, 8
and ecx, 0x10101
add ecx, 0x7f7f7f
xor ecx, 0x7f7f7f
sub eax, ecx
add eax, edx
or eax, ecx
and eax, 0xffffff
mov dword [esi], eax
add esi, dword [ebp + 0x14]
dec edi
jne 0x5954b3
pop ebx
pop edi
pop esi
pop ebp
ret 0x18

Function at 0x595500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
test edx, edx
jle 0x5955a0
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x59559f
push esi
cmp edx, 0x100
jl 0x595528
mov ecx, dword [ebp + 0x10]
jmp 0x595556
mov eax, dword [ebp + 0x10]
mov ecx, eax
and ecx, 0xff00
mov esi, eax
imul ecx, edx
and esi, 0xffff00ff
imul esi, edx
and eax, 0xff00ff
imul eax, edx
xor ecx, esi
and ecx, 0xff0000
xor ecx, eax
shr ecx, 8
test edi, edi
jle 0x59559e
mov esi, dword [ebp + 8]
push ebx
mov edi, edi
mov edx, dword [esi]
mov eax, edx
not eax
mov ebx, eax
xor ebx, ecx
and eax, ecx
and ebx, 0xfefefe
lea eax, [ebx + eax*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov ebx, eax
or ebx, edx
or eax, ecx
sub ebx, eax
and ebx, 0xffffff
mov dword [esi], ebx
add esi, 4
dec edi
jne 0x595560
pop ebx
pop esi
pop edi
pop ebp
ret 0x14

Function at 0x595a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
test edx, edx
jle 0x595ae3
cmp edx, 0x100
jle 0x595a5b
mov edx, pe_nt_image_headers32
mov eax, dword [ebp + 0x14]
push esi
mov ecx, eax
and ecx, 0xff00
mov esi, eax
imul ecx, edx
and esi, 0xffff00ff
imul esi, edx
and eax, 0xff00ff
imul eax, edx
xor ecx, esi
and ecx, 0xff0000
xor ecx, eax
push edi
mov edi, dword [ebp + 0xc]
shr ecx, 8
test edi, edi
jle 0x595ae1
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea edx, [eax*4]
mov dword [ebp + 0x18], edx
push ebx
mov edx, dword [esi]
mov eax, edx
not eax
mov ebx, eax
xor ebx, ecx
and eax, ecx
and ebx, 0xfefefe
lea eax, [ebx + eax*2]
shr eax, 8
and eax, 0x10101
add eax, 0x7f7f7f
xor eax, 0x7f7f7f
mov ebx, eax
or ebx, edx
or eax, ecx
sub ebx, eax
and ebx, 0xffffff
mov dword [esi], ebx
add esi, dword [ebp + 0x18]
dec edi
jne 0x595aa3
pop ebx
pop edi
pop esi
pop ebp
ret 0x14