joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1fd2c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret
Function at 0x1fd3c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
mov edx, 0x40
cmp eax, edx
jb 0x1fd3d9
lea eax, [edx - 0x30]
pop esi
pop ebp
ret
lea ecx, [eax*8]
add dword [esi], ecx
push ebx
mov ebx, 0
adc dword [esi + 4], ebx
push edi
mov byte [eax + esi + 0x2c], 0x80
mov edi, 1
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
mov ecx, 0x38
cmp eax, ecx
jbe 0x1fd432
cmp eax, edx
jae 0x1fd41e
lea esp, [esp]
mov byte [eax + esi + 0x2c], bl
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
cmp eax, edx
jb 0x1fd410
lea eax, [esi + 0x2c]
push esi
call fcn.001fb810
add esp, 4
mov dword [esi + 0x28], ebx
mov ecx, 0x38
cmp dword [esi + 0x28], ecx
jae 0x1fd44f
jmp 0x1fd440
mov edx, dword [esi + 0x28]
mov byte [esi + edx + 0x2c], bl
add dword [esi + 0x28], edi
cmp dword [esi + 0x28], ecx
jb 0x1fd440
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
mov byte [esi + 0x64], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x65], cl
movzx ecx, byte [esi + 3]
mov byte [esi + 0x67], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x66], dl
movzx edx, byte [esi + 2]
mov byte [esi + 0x68], cl
movzx ecx, byte [esi]
mov byte [esi + 0x6a], al
lea eax, [esi + 0x2c]
push esi
mov byte [esi + 0x69], dl
mov byte [esi + 0x6b], cl
call fcn.001fb810
movzx edx, byte [esi + 0xb]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
movzx ecx, byte [esi + 0xa]
mov byte [eax + 1], cl
movzx edx, byte [esi + 9]
mov byte [eax + 2], dl
movzx ecx, byte [esi + 8]
mov byte [eax + 3], cl
movzx edx, byte [esi + 0xf]
mov byte [eax + 4], dl
movzx ecx, byte [esi + 0xe]
mov byte [eax + 5], cl
movzx edx, byte [esi + 0xd]
mov byte [eax + 6], dl
movzx ecx, byte [esi + 0xc]
mov byte [eax + 7], cl
movzx edx, byte [esi + 0x13]
mov byte [eax + 8], dl
movzx ecx, byte [esi + 0x12]
mov byte [eax + 9], cl
movzx edx, byte [esi + 0x11]
mov byte [eax + 0xa], dl
movzx ecx, byte [esi + 0x10]
mov byte [eax + 0xb], cl
movzx edx, byte [esi + 0x17]
mov byte [eax + 0xc], dl
movzx ecx, byte [esi + 0x16]
mov byte [eax + 0xd], cl
movzx edx, byte [esi + 0x15]
mov byte [eax + 0xe], dl
movzx ecx, byte [esi + 0x14]
mov byte [eax + 0xf], cl
movzx edx, byte [esi + 0x1b]
mov byte [eax + 0x10], dl
movzx ecx, byte [esi + 0x1a]
mov byte [eax + 0x11], cl
movzx edx, byte [esi + 0x19]
mov byte [eax + 0x12], dl
movzx ecx, byte [esi + 0x18]
mov byte [eax + 0x13], cl
movzx edx, byte [esi + 0x1f]
mov byte [eax + 0x14], dl
movzx ecx, byte [esi + 0x1e]
mov byte [eax + 0x15], cl
movzx edx, byte [esi + 0x1d]
mov byte [eax + 0x16], dl
movzx ecx, byte [esi + 0x1c]
mov byte [eax + 0x17], cl
movzx edx, byte [esi + 0x23]
mov byte [eax + 0x18], dl
movzx ecx, byte [esi + 0x22]
mov byte [eax + 0x19], cl
movzx edx, byte [esi + 0x21]
mov byte [eax + 0x1a], dl
movzx ecx, byte [esi + 0x20]
mov byte [eax + 0x1b], cl
movzx edx, byte [esi + 0x27]
mov byte [eax + 0x1c], dl
movzx ecx, byte [esi + 0x26]
add esp, 4
mov byte [eax + 0x1d], cl
movzx edx, byte [esi + 0x25]
mov byte [eax + 0x1e], dl
movzx ecx, byte [esi + 0x24]
pop edi
pop ebx
mov byte [eax + 0x1f], cl
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1fdbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1fdc94
push esi
mov eax, dword [ebp + 0x10]
dec dword [ebp + 0xc]
test eax, eax
je 0x1fdc21
call eax
dec dword [ebp - 8]
call fcn.00218a2b
mov esi, eax
call fcn.00218a2b
cmp esi, eax
jne 0x1fdc40
xor edi, 1
call fcn.00218a2b
cmp esi, eax
je 0x1fdc34
call fcn.00218a2b
mov esi, eax
call fcn.00218a2b
cmp esi, eax
jne 0x1fdc5c
xor ebx, 1
call fcn.00218a2b
cmp esi, eax
je 0x1fdc50
cmp edi, ebx
je 0x1fdc24
mov eax, dword [ebp - 4]
lea ecx, [eax + eax]
or ecx, edi
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
jne 0x1fdc21
mov eax, dword [ebp + 8]
mov dl, cl
mov byte [eax], dl
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 8
jne 0x1fdc15
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1fdda0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
add eax, eax
lea edx, [ecx + eax*8 + 0x258]
push 0x10
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00217030
add esp, 0xc
mov esi, 1
mov edx, 0x100
movzx ecx, byte [esi + edi]
mov ebx, dword [ebp + 8]
add ecx, edx
xor eax, eax
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x258]
jmp 0x1fddf0
mov ebx, dword [ecx]
xor dword [ebp + eax - 0x10], ebx
add eax, 4
add ecx, 4
cmp eax, 0x10
jl 0x1fddf0
add edx, 0x100
inc esi
cmp edx, 0x1000
jl 0x1fddd4
push 0x10
lea edx, [ebp - 0x10]
push edx
push edi
call fcn.00217030
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x207574
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, edx
xor eax, dword [ebp + 0x10]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x2075ab
push esi
push edi
mov esi, dword [ebp + 8]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x20758b
pop edi
pop esi
pop ebp
ret

Function at 0x20b710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov esi, 0x200
call fcn.001ff3b6
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.001ff255
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00216b5d
add esp, 0x20
jmp 0x20b772
cmp esi, 0x3fffffff
ja 0x20b756
add esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.001ff255
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00216b5d
add esp, 0x18
add dword [ebp - 0x208], eax
cmp eax, esi
jae 0x20b74c
lea eax, [ebp - 0x210]
push eax
call fcn.001ff31e
pop ecx
pop esi
leave
ret

Function at 0x20b78c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.001ff3b6
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.001ff255
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.00216b5d
mov esi, eax
add dword [ebp - 0x208], esi
lea eax, [ebp - 0x210]
push eax
call fcn.001ff31e
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x20ba7d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00200364
pop ecx
mov esi, eax
sub esi, ebx
push 1
pop edi
je 0x20bb0e
push ebx
push dword [ebp + 8]
dec esi
call fcn.002004f3
pop ecx
pop ecx
cmp eax, 3
jne 0x20bad7
test edi, edi
je 0x20bb03
push 0
push ebx
push dword [ebp + 8]
call fcn.002006dc
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 0xc]
call fcn.0021419d
add esp, 0x10
test eax, eax
jle 0x20bb03
xor edi, edi
inc edi
jmp 0x20bb05
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call fcn.001ffed8
add esp, 0xc
test edi, edi
je 0x20bb03
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp - 4]
inc edi
push edi
push eax
call fcn.0021578e
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x20bb05
xor edi, edi
inc ebx
test esi, esi
jne 0x20ba98
test edi, edi
je 0x20bb13
xor eax, eax
inc eax
jmp 0x20bb22
push 0
push 0
push dword [ebp + 8]
call fcn.001ff07f
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446049
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x446088
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x446088
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x446088
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x446088
cmp dword [ecx + 0x74], 0xe
jbe 0x446088
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44b516
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004538f0
mov eax, dword [0x4635e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044ff08
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44b558
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44b6b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00453840
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x464fe0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0045366c
mov ecx, dword [esi*4 + 0x464fe0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x44b6ad
cmp eax, dword [ecx + edi + 0x24]
jne 0x44b6ad
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44b6ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045366c
add esp, 0x14
test edx, edx
jl 0x44b6ad
jg 0x44b623
test eax, eax
jb 0x44b6ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44b6ad
jl 0x44b63d
cmp dword [ebp - 0x1008], eax
ja 0x44b6ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44b65b
test ebx, ebx
je 0x44b694
cmp ecx, edi
jae 0x44b694
mov al, byte [ecx]
cmp al, 0xd
jne 0x44b675
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44b681
cmp byte [ecx + 1], 0xa
jne 0x44b681
inc ecx
jmp 0x44b681
movzx eax, al
movsx eax, byte [eax + 0x463d60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44b65b
cmp edx, ebx
jne 0x44b65b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44b6b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00444de3
leave
ret

Function at 0x44cb60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44cb8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44cb8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44cef2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45bec0
push 0x45beb8
push str.FlsAlloc
push 0x1f
call fcn.0044d1d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44cf26
push dword [ebp + 8]
mov ecx, esi
call dword [section..bss]
call esi
jmp 0x44cf2c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44cf70
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45bed0
push 0x45bec8
push str.FlsGetValue
push 0x21
call fcn.0044d1d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44cfa7
push dword [ebp + 8]
mov ecx, esi
call dword [section..bss]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44cfaf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45bed8
push 0x45bed0
push str.FlsSetValue
push 0x22
call fcn.0044d1d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44cfe9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..bss]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x45187b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x451918
push ebx
push esi
call fcn.0045191b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0045177f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4518c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x451917
push edi
push eax
call fcn.0044ed36
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4518e5
call fcn.0044e38b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x451916
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045177f
add esp, 0x20
test eax, eax
jne 0x451904
push edi
call fcn.0044e38b
jmp 0x45190c
push ebx
call fcn.0044e38b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x45312d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x464fe0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45316d
cmp byte [ebx], 0xa
jne 0x45316d
or byte [edi + eax + 0x28], 4
jmp 0x453172
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x453271
mov dl, byte [eax]
cmp dl, 0x1a
je 0x453254
inc eax
cmp dl, 0xd
je 0x45319e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4531c4
cmp eax, ecx
jae 0x4531d2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x453186
jmp 0x453271
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45324f
cmp dword [ebp - 0x10], 0
je 0x45324f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x464fe0]
test byte [eax + edi + 0x28], 0x48
je 0x453229
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x453214
mov byte [esi], dl
jmp 0x453225
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x464fe0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x453271
cmp byte [ebp - 1], 0xa
jne 0x453238
cmp esi, ebx
jne 0x453238
mov byte [esi], 0xa
jmp 0x453270
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045360e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x453271
mov byte [esi], 0xd
jmp 0x453270
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x464fe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45326e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x453271
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45327a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x464fe0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4532c0
cmp word [ebx], dx
jne 0x4532c0
or byte [eax + edi + 0x28], 4
jmp 0x4532c5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x453428
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x453408
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x453306
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45333c
cmp eax, edx
jae 0x45334a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4532e1
jmp 0x453428
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453403
cmp dword [ebp - 0x18], 0
je 0x453403
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x464fe0]
test byte [eax + edi + 0x28], 0x48
je 0x4533d9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x45339d
mov word [esi], cx
jmp 0x4533d4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x464fe0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x464fe0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x464fe0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x453428
pop eax
cmp word [ebp - 4], ax
jne 0x4533e9
cmp esi, ebx
jne 0x4533e9
mov word [esi], ax
jmp 0x453425
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045360e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x453428
push 0xd
pop eax
jmp 0x4533e4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x464fe0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x453422
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x453428
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x459218
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004593af
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x459387
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x459387
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45933c
jg 0x459274
test eax, eax
je 0x459332
push 1
push 0x1000
call fcn.0044ebee
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x459297
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x459329
push 0x8000
push ebx
call fcn.0044aa94
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4592c0
jg 0x4592bb
cmp ecx, 0x1000
jb 0x4592c0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00454065
add esp, 0x10
cmp eax, 0xffffffff
je 0x459305
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4592bb
jl 0x4592ec
test ecx, ecx
jne 0x4592ad
push dword [ebp - 0xc]
push ebx
call fcn.0044aa94
push esi
call fcn.0044e38b
add esp, 0xc
xor ebx, ebx
jmp 0x459395
cmp byte [edi + 0x24], 0
je 0x45931c
cmp dword [edi + 0x20], 5
jne 0x45931c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x459327
mov ebx, dword [edi + 0x18]
jmp 0x459329
xor ebx, ebx
push esi
call fcn.0044e38b
pop ecx
jmp 0x459395
test ecx, ecx
jg 0x4592fe
jl 0x45933c
test eax, eax
jae 0x4592fe
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045360e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45935c
cmp byte [edi + 0x1c], 0
je 0x4592fe
jmp 0x45938d
push ebx
call fcn.00451cdc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4592fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x459395
cmp byte [edi + 0x1c], 0
je 0x459392
mov ebx, dword [edi + 0x18]
jmp 0x459395
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045360e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ec0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 1
mov ecx, 2
je 0x402efc
movzx eax, byte [esi]
cmp byte [eax + esi], 0x20
mov ecx, 4
jne 0x402efc
jmp 0x402ef0
add byte [esi], 0xff
movzx edx, byte [esi]
cmp byte [edx + esi], 0x20
je 0x402ef0
mov ebx, dword [esp + 0x18]
cmp ebx, 0xa
jb 0x402f1e
mov eax, 0xa
lea ebx, [ebx]
mov edi, eax
lea eax, [edi + edi*4]
add eax, eax
add ecx, 1
cmp ebx, eax
jae 0x402f10
mov eax, 0x3f
sub eax, ecx
movzx ecx, byte [esi]
push eax
push ecx
lea edx, [esi + 1]
push edx
call fcn.00402cc0
mov byte [esi], al
add al, 1
add esp, 0xc
test ebp, ebp
mov byte [esi], al
je 0x402f53
movzx eax, al
mov byte [eax + esi], 0x20
add byte [esi], 1
movzx ecx, byte [esi]
mov byte [ecx + esi], 0x28
jmp 0x402f5a
movzx edx, al
mov byte [edx + esi], 0x2d
test edi, edi
je 0x402f83
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
add byte [esi], 1
mov cl, byte [esi]
movzx ecx, cl
add al, 0x30
mov byte [ecx + esi], al
mov ebx, edx
mov eax, 0xcccccccd
mul edi
shr edx, 3
mov edi, edx
jne 0x402f60
test ebp, ebp
je 0x402f91
add byte [esi], 1
movzx edx, byte [esi]
mov byte [edx + esi], 0x29
pop edi
pop esi
pop ebp
pop ebx
ret