joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0x20], eax
call fcn.004360b0
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc0]
push edx
push eax
push esi
call fcn.004360d0
mov edx, dword [ebp + 0x14]
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x160]
push ecx
push edx
push ebx
call fcn.00436150
mov eax, dword [ebp + 0x20]
lea ecx, [eax - 1]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
add edx, 1
mov dword [esp + 0x18], edx
je 0x45285b
lea edx, [esp + 0x204]
mov dword [esp + 0x10], 0
mov ebx, 1
mov dword [esp + 0xc], edx
xor eax, eax
mov ecx, 0x28
lea esi, [esp + 0x160]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x204], eax
mov dword [esp + 0x208], eax
mov dword [esp + 0x20c], eax
mov dword [esp + 0x210], eax
mov dword [esp + 0x214], eax
mov ecx, ebx
shr ecx, 0x10
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x219], cl
mov ecx, dword [ebp + 0x18]
mov edx, ebx
shr edx, 8
mov byte [esp + 0x218], al
mov byte [esp + 0x21a], dl
mov byte [esp + 0x21b], bl
mov eax, 4
test ecx, ecx
jbe 0x452820
mov dword [esp + 0x14], ecx
jmp 0x452780
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x220]
push edx
call fcn.00436150
lea eax, [esp + 0x20]
push eax
push 0x14
lea ecx, [esp + 0x220]
push ecx
call fcn.004361f0
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x218]
xor byte [esp + eax + 0x204], dl
movzx ecx, byte [esp + eax + 0x219]
movzx edx, byte [esp + eax + 0x21a]
xor byte [esp + eax + 0x205], cl
xor byte [esp + eax + 0x206], dl
movzx ecx, byte [esp + eax + 0x21b]
movzx edx, byte [esp + eax + 0x21c]
xor byte [esp + eax + 0x207], cl
xor byte [esp + eax + 0x208], dl
add eax, 5
cmp eax, 0x14
jb 0x4527b0
sub dword [esp + 0x14], 1
mov ecx, 0x28
lea esi, [esp + 0xc0]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
jne 0x452780
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [ebp + 0x20]
jae 0x452840
mov edx, dword [esp + 0xc]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x1c]
mov byte [eax + esi], dl
inc ecx
inc eax
cmp ecx, 0x14
jb 0x452826
mov eax, 0x14
add dword [esp + 0x10], eax
sub dword [esp + 0xc], eax
inc ebx
lea eax, [ebx - 1]
cmp eax, dword [esp + 0x18]
jb 0x452705
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049eaa6
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x45cbc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebp, ecx
mov ecx, 8
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor ecx, ecx
xor eax, eax
lea esp, [esp]
cmp edi, 0xa
jg 0x45cd1d
cmp eax, 4
jge 0x45cc36
mov edi, edi
cmp ecx, 4
jge 0x45cc39
mov bl, byte [esp + eax*4 + 0x10]
lea edx, [ecx + edi*4]
mov byte [ebp + edx*4 + 0x14], bl
lea edx, [ecx + edi*4]
lea esi, [ebp + edx*4]
movzx edx, byte [esp + eax*4 + 0x11]
mov byte [esi + 0x15], dl
movzx edx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], dl
movzx edx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], dl
jl 0x45cc00
cmp ecx, 4
jne 0x45cc3e
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x45cbf0
cmp edi, 0xa
jg 0x45cd1d
mov edx, 0x4f2180
movzx esi, byte [esp + 0x1d]
mov al, byte [esp + 0x10]
xor al, byte [esi + 0x4f22a0]
movzx esi, byte [esp + 0x1e]
movzx ebx, byte [esi + 0x4f22a0]
movzx esi, byte [esp + 0x1f]
xor byte [esp + 0x11], bl
movzx ebx, byte [esi + 0x4f22a0]
movzx esi, byte [esp + 0x1c]
xor byte [esp + 0x12], bl
movzx ebx, byte [esi + 0x4f22a0]
xor al, byte [edx]
xor byte [esp + 0x13], bl
mov byte [esp + 0x10], al
inc edx
lea eax, [esp + 0x11]
mov esi, 3
movzx ebx, byte [eax - 1]
xor byte [eax + 3], bl
movzx ebx, byte [eax]
xor byte [eax + 4], bl
movzx ebx, byte [eax + 1]
xor byte [eax + 5], bl
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
sub esi, 1
jne 0x45cca0
xor eax, eax
cmp edi, 0xa
jg 0x45cd1d
cmp eax, 4
jge 0x45cd07
nop
cmp ecx, 4
jge 0x45cd0a
movzx ebx, byte [esp + eax*4 + 0x10]
lea esi, [ecx + edi*4]
mov byte [ebp + esi*4 + 0x14], bl
movzx ebx, byte [esp + eax*4 + 0x11]
lea esi, [ecx + edi*4]
lea esi, [ebp + esi*4]
mov byte [esi + 0x15], bl
movzx ebx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], bl
movzx ebx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], bl
jl 0x45ccd0
cmp ecx, 4
jne 0x45cd0f
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x45ccc5
cmp edi, 0xa
jle 0x45cc51
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049eaa6
add esp, 0x24
ret 4
Function at 0x45cd40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, ecx
push edi
lea esi, [eax + 0x24]
lea ecx, [eax + 0x28]
mov edi, 9
mov edi, edi
xor eax, eax
jmp 0x45cd70
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x4ef180]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4ef580]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x4ef980]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x4efd80]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0xc], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x4ef180]
xor dl, byte [eax + ebx*4 + 0x4ef580]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x4ef980]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4efd80]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x4ef180]
xor dl, byte [eax + ebx*4 + 0x4ef580]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x4ef980]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x4efd80]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x4ef180]
xor dl, byte [eax + ebx*4 + 0x4ef580]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x4ef980]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x4efd80]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x17], dl
jl 0x45cd70
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
add ecx, 0x10
add esi, 0x10
sub edi, 1
jne 0x45cd60
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049eaa6
add esp, 0x14
ret
Function at 0x45e010
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
mov ebx, ecx
test eax, eax
ja 0x45e049
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x18
ret 0xc
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
xor edx, dword [ebx + 0xc]
shr eax, 4
push ebp
mov ebp, eax
mov eax, dword [esi]
xor eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x10]
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0045ce80
add esi, 0x10
add ebp, 0xffffffff
je 0x45e0ce
nop
mov edx, dword [edi]
xor edx, dword [esi]
mov eax, dword [edi + 4]
xor eax, dword [esi + 4]
mov ecx, dword [edi + 8]
xor ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
add edi, 0x10
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.0045ce80
add esi, 0x10
sub ebp, 1
jne 0x45e090
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 8], edx
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
shl eax, 4
call fcn.0049eaa6
add esp, 0x18
ret 0xc
Function at 0x45e110
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov ebx, ecx
test esi, esi
je 0x45e205
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x45e205
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
shr eax, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x10]
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x45e1d5
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebx
call fcn.0045d580
mov edx, dword [esp + 0x20]
xor dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
xor eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], edx
jne 0x45e167
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ebp
pop ebp
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x20]
pop edi
mov dword [ebx + 0xc], ecx
pop esi
mov dword [ebx + 0x10], edx
shl eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049eaa6
add esp, 0x2c
ret 0xc
Function at 0x460240
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push 0x4b1948
push eax
call fcn.004a0348
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46041f
push ebx
push 1
lea ecx, [esp + 0x18]
push 0x16
push ecx
call fcn.004a05f9
add esp, 0x10
cmp word [esp + 0x10], 0
jne 0x460416
cmp word [esp + 0x12], 1
jne 0x460416
push ebp
push esi
push edi
push 0
push 0
push ebx
call fcn.004a08a5
movzx edx, word [esp + 0x2c]
dec edx
shl edx, 4
add edx, 0x16
push edx
call fcn.0049eb7f
mov esi, eax
movzx eax, word [esp + 0x30]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx + 0x14]
push edx
call fcn.0049eb7f
mov edi, eax
movzx eax, word [esp + 0x34]
dec eax
push ebx
shl eax, 4
push 1
add eax, 0x16
push eax
push esi
mov dword [esp + 0x3c], edi
call fcn.004a05f9
mov ecx, dword [esi]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0x24
mov dword [edi + 0x10], edx
mov dword [esp + 0x10], 0
cmp ax, word [esp + 0x20]
jae 0x4603bb
lea eax, [edi + 0x12]
lea ebp, [esi + 0xe]
mov dword [esp + 0x14], eax
jmp 0x460324
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [eax - 8], edx
mov ecx, dword [ebp]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov word [eax], cx
mov edi, dword [ebp]
push edi
call fcn.0049eb7f
mov esi, eax
add esp, 4
test esi, esi
je 0x460401
mov edx, dword [ebp + 4]
push 0
push edx
push ebx
call fcn.004a08a5
push ebx
push 1
push edi
push esi
call fcn.004a05f9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
add esp, 0x1c
push edi
push esi
inc eax
push 0x400
movzx eax, ax
push eax
push 3
push ecx
call dword [0x4b11bc]
push esi
mov edi, eax
call fcn.0049e7fd
add esp, 4
test edi, edi
je 0x460401
mov eax, dword [esp + 0x10]
movzx edx, word [esp + 0x20]
add dword [esp + 0x14], 0xe
inc eax
add ebp, 0x10
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x460320
mov edi, dword [esp + 0x18]
push ebx
call fcn.004a0026
movzx eax, word [esp + 0x24]
dec eax
add esp, 4
lea ecx, [eax*8]
sub ecx, eax
movzx eax, word [esp + 0x3c]
lea edx, [ecx + ecx + 0x14]
mov ecx, dword [esp + 0x38]
push edx
push edi
push 0x400
push eax
push 0xe
push ecx
call dword [0x4b11bc]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x24
ret 8
push ebx
call fcn.004a0026
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret 8
push ebx
call fcn.004a0026
add esp, 4
xor al, al
pop ebx
add esp, 0x24
ret 8
Function at 0x460430
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0x4b1948
push eax
call fcn.004a0348
mov esi, eax
add esp, 8
test esi, esi
je 0x460533
push esi
call fcn.004a22e5
add esp, 4
cmp eax, 0x42
jne 0x46052a
push esi
call fcn.004a22e5
add esp, 4
cmp eax, 0x4d
jne 0x46052a
push edi
push 0
push 2
push esi
call fcn.004a08a5
push esi
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.004a05f9
mov eax, dword [esp + 0x24]
sub eax, 0xe
push eax
mov dword [esp + 0x28], eax
call fcn.0049eb7f
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x4604b3
push esi
call fcn.004a0026
add esp, 4
pop edi
xor al, al
pop esi
pop ecx
ret 8
push 0
push 0xe
push esi
call fcn.004a08a5
mov edx, dword [esp + 0x14]
push esi
push edx
push 1
push edi
call fcn.004a05f9
add esp, 0x1c
cmp eax, dword [esp + 8]
je 0x4604eb
push edi
call fcn.0049e7fd
push esi
call fcn.004a0026
add esp, 8
pop edi
xor al, al
pop esi
pop ecx
ret 8
push esi
call fcn.004a0026
mov eax, dword [esp + 0xc]
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
push eax
push edi
push 0x400
push ecx
push 2
push edx
call dword [0x4b11bc]
push edi
mov esi, eax
call fcn.0049e7fd
add esp, 4
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
pop ecx
ret 8
push esi
call fcn.004a0026
add esp, 4
xor al, al
pop esi
pop ecx
ret 8

Function at 0x4605a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push 0x4b1948
push eax
call fcn.004a0348
mov esi, eax
add esp, 8
test esi, esi
jne 0x4605ea
mov al, 1
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x404
ret 4
push edi
push esi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004a05f9
push esi
mov edi, eax
call fcn.004a0026
lea ecx, [edi - 4]
add esp, 0x14
xor eax, eax
pop edi
test ecx, ecx
jle 0x460634
mov dl, 0x55
cmp byte [esp + eax + 4], dl
jne 0x46062f
cmp byte [esp + eax + 5], 0x50
jne 0x46062f
cmp byte [esp + eax + 6], 0x58
jne 0x46062f
cmp byte [esp + eax + 7], 0x30
je 0x4605d0
inc eax
cmp eax, ecx
jl 0x460614
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
xor al, al
call fcn.0049eaa6
add esp, 0x404
ret 4

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

Disassembly:
mov eax, 0x2004
call fcn.0049f030
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
push 0x4b1948
push eax
call fcn.004a0348
mov esi, eax
add esp, 8
test esi, esi
jne 0x46069e
xor al, al
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x2004
ret 4
push esi
push 0x2000
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004a05f9
add esp, 0x10
test eax, eax
je 0x4606de
push edi
push eax
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004a0202
push esi
push 0x2000
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.004a05f9
add esp, 0x20
test eax, eax
jne 0x4606b7
push esi
call fcn.004a0026
mov ecx, dword [esp + 0x2008]
add esp, 4
pop esi
xor ecx, esp
mov al, 1
call fcn.0049eaa6
add esp, 0x2004
ret 4
Function at 0x460710
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.0049f030
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x200c]
push edi
push 0x4b1948
push eax
mov dword [esp + 0xc], ecx
call fcn.004a0348
mov edi, eax
add esp, 8
test edi, edi
jne 0x460760
pop edi
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x2008
ret 8
push ebx
push ebp
push esi
push edi
push 0x2000
lea edx, [esp + 0x1c]
push 1
push edx
xor ebx, ebx
call fcn.004a05f9
mov ebp, eax
add esp, 0x10
cmp ebp, 0x20
jbe 0x4607e7
lea eax, [ebp - 0x20]
xor esi, esi
test eax, eax
jbe 0x4607be
lea ebx, [ebx]
cmp byte [esp + esi + 0x14], 0x2a
jne 0x4607b6
cmp byte [esp + esi + 0x15], 0x2a
jne 0x4607b6
push 0xc
lea eax, [esp + esi + 0x1a]
push 0x4b3b6c
push eax
call fcn.0049fc3f
add esp, 0xc
test eax, eax
je 0x4607f4
inc esi
lea eax, [ebp - 0x20]
cmp esi, eax
jb 0x460790
push 0
lea ebx, [ebx + ebp - 0x20]
push ebx
push edi
call fcn.004a08a5
push edi
push 0x2000
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.004a05f9
mov ebp, eax
add esp, 0x1c
cmp ebp, 0x20
ja 0x460781
push edi
call fcn.004a0026
add esp, 4
xor eax, eax
jmp 0x460821
push 0
add esi, ebx
push esi
push edi
call fcn.004a08a5
mov edx, dword [esp + 0x202c]
mov eax, dword [esp + 0x1c]
push edi
push edx
push 1
push eax
call fcn.004a05f9
push edi
mov esi, eax
call fcn.004a0026
add esp, 0x20
mov eax, esi
mov ecx, dword [esp + 0x2014]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0049eaa6
add esp, 0x2008
ret 8

Function at 0x460840
Capabilities:
Persist via lnk shortcut
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.0049f030
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebp
push 0x4b3764
push eax
call fcn.004a0348
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x46088e
xor al, al
pop ebp
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x2004
ret 4
push ebx
push esi
push edi
push ebp
push 0x2000
lea eax, [esp + 0x18]
push 1
push eax
xor ebx, ebx
call fcn.004a05f9
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jbe 0x460917
nop
lea eax, [edi - 0x20]
xor esi, esi
test eax, eax
jle 0x4608ee
lea esp, [esp]
cmp byte [esp + esi + 0x10], 0x61
jne 0x4608e6
cmp byte [esp + esi + 0x11], 0x73
jne 0x4608e6
push 0x14
lea ecx, [esp + esi + 0x16]
push 0x4b3c14
push ecx
call fcn.0049fc3f
add esp, 0xc
test eax, eax
je 0x460924
inc esi
lea eax, [edi - 0x20]
cmp esi, eax
jl 0x4608c0
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push ebp
call fcn.004a08a5
push ebp
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004a05f9
mov edi, eax
add esp, 0x1c
cmp edi, 0x20
ja 0x4608b0
push ebp
call fcn.004a0026
add esp, 4
xor al, al
jmp 0x46094f
push 0
add esi, ebx
push esi
push ebp
call fcn.004a08a5
push ebp
push 0x15
push 1
push 0x4b3bfc
call fcn.004a0202
cmp eax, 0x15
push ebp
sete bl
call fcn.004a0026
add esp, 0x20
mov al, bl
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.0049eaa6
add esp, 0x2004
ret 4
Function at 0x464de0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4
Function at 0x4654c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret 4

Function at 0x46dad0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x4db5d8]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x4c6a28]
mov edx, dword [0x4db5e0]
mov dword [0x4db5d8], ecx
movzx ecx, cl
add ecx, dword [0x4db5dc]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x4db5dc], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4c6a28]
mov dword [0x4db5e0], edx
ret 4

Function at 0x46db30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x4db5d8], eax
mov dword [0x4db5dc], edx
mov dword [0x4db5e0], esi
mov cl, byte [edi]
test cl, cl
je 0x46dbb0
lea esp, [esp]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4c6a28]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4c6a28]
mov dword [0x4db5d8], eax
mov dword [0x4db5dc], edx
mov dword [0x4db5e0], esi
mov cl, byte [edi]
test cl, cl
jne 0x46db60
pop edi
pop esi
ret 4
Function at 0x4713f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.004711e0
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x471430
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x471430
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x471496
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x471513
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x4714c0
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x4714b0
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x4714f9
add byte [edi + 3], 0xff
jne 0x4714f9
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.004711a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x471533
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4