joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov cl, byte [ebp + 0x55]
mov bl, byte [ebp + 0x56]
mov dl, cl
and dl, 0xc
mov byte [esp + 0xb], bl
neg dl
mov al, cl
sbb dl, dl
sar al, 7
and al, 0x44
and dl, 4
or dl, al
mov eax, dword [ebp + 0x260]
neg eax
sbb al, al
and cl, 3
and al, 0x25
or dl, al
mov al, byte [ebp + 0x220]
and al, 1
shl al, 4
or dl, al
or dl, cl
cmp bl, dl
je 0x46b807
mov al, dl
mov byte [ebp + 0x56], dl
and al, 0x30
lea ebx, [ebp + 0xba0]
push esi
push edi
cmp al, 0x10
jne 0x46b62a
movzx ecx, word [0x507616]
movzx esi, word [0x50761c]
add ecx, section..text2
movzx edi, word [0x507622]
add esi, section..text2
movzx eax, word [0x50762a]
add edi, section..text2
movzx ebp, word [0x507630]
jmp 0x46b64a
mov ecx, dword [ebx + 0x3a8]
mov esi, dword [ebx + 0x3b4]
mov edi, dword [ebx + 0x3c0]
movzx eax, word [0x50762c]
movzx ebp, word [0x507632]
lea eax, [eax + section..text2]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x14], eax
lea ebp, [ebp + section..text2]
mov dh, dl
mov dword [ebx + 0x3a4], ecx
xor dh, byte [esp + 0x13]
mov al, dl
and al, 4
mov dword [ebx + 0x3b0], esi
mov dword [ebx + 0x3bc], edi
test dh, 0x64
je 0x46b6fb
test al, al
jne 0x46b6c8
lea esi, [ebx + 0x268]
mov ecx, 0x59
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test dl, 2
je 0x46b770
mov dword [ebx + 0x124], 0x44614b
mov dword [ebx + 0x128], 0x44614b
mov dword [ebx + 0x12c], 0x44614b
mov dword [ebx + 0x130], 0x44614b
jmp 0x46b770
test dl, 0x40
je 0x46b6e0
mov eax, 0x4462b2
mov ecx, 0x59
mov edi, ebx
rep stosd dword es:[edi], eax
jmp 0x46b770
test dl, 0x20
mov ecx, 0x446130
mov eax, 0x446158
mov edi, ebx
cmovne eax, ecx
mov ecx, 0x59
rep stosd dword es:[edi], eax
jmp 0x46b770
test al, al
jne 0x46b770
mov dword [ebx + 0x13c], ecx
mov dword [ebx + 0x148], esi
mov dword [ebx + 0x154], edi
test dl, 2
je 0x46b740
mov dword [ebx + 0x124], 0x44614b
mov dword [ebx + 0x128], 0x44614b
mov dword [ebx + 0x12c], 0x44614b
mov dword [ebx + 0x130], 0x44614b
jmp 0x46b770
mov eax, dword [ebx + 0x38c]
mov dword [ebx + 0x124], eax
mov eax, dword [ebx + 0x390]
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x394]
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x398]
mov dword [ebx + 0x130], eax
test dh, 1
je 0x46b7bd
lea edi, [ebx + 0x164]
test dl, 1
jne 0x46b7af
mov ecx, 0xb2
nop word [eax + eax]
movzx eax, word [ecx + 0x507578]
lea edi, [edi + 4]
add eax, section..text2
add ecx, 2
mov dword [edi - 4], eax
cmp ecx, 0x134
jb 0x46b790
jmp 0x46b7c2
mov ecx, 0x41
mov eax, 0x4461d5
rep stosd dword es:[edi], eax
jmp 0x46b7d2
test dl, 1
jne 0x46b7d2
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x164], eax
mov dword [ebx + 0x170], ebp
mov ebp, dword [esp + 0x1c]
test dl, 0x10
je 0x46b805
test byte [esp + 0x13], 0x10
jne 0x46b805
mov ax, word [ebp + 0x7dc]
lea edi, [ebp + 0xb20]
add ax, ax
mov ecx, 0x20
dec ax
movzx eax, ax
mov edx, eax
shl edx, 0x10
or eax, edx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x46bcb0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edx
mov eax, dword [esi + 8]
and dword [eax + 0x260], 0xffffffef
mov dword [eax + 0xf8], 0
mov byte [esi + 7], 0
call fcn.0046be10
mov eax, dword [esi + 8]
add esp, 4
mov eax, dword [eax + 0xe8]
test eax, eax
je 0x46bce7
push esi
call eax
add esp, 4
push 1
call fcn.004b352a
pop esi
int3

Function at 0x46be30
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x28]
sub edx, 8
test ebx, ebx
je case.default.0x46be6a
mov eax, ebx
and eax, 0xfffffffc
mov eax, dword [eax + 0x48]
test eax, eax
jns 0x46be5d
mov ecx, dword [esi + 0x1c]
sub ecx, eax
cmp edx, ecx
jb 0x46beb7
cmp edx, dword [esi + 0x1c]
jbe case.default.0x46be6a
mov ecx, dword [edx + 4]
mov eax, ecx
and eax, 7
jmp dword [eax*4 + 0x46bfa0]
movzx ecx, byte [ecx - 3]
mov eax, 0xfffffff8
shl ecx, 3
sub eax, ecx
add edx, eax
jmp 0x46bea6
cmp dword [edx - 8], 1
jne case.0x46be6a.3
test edi, edi
jne 0x46bec8
cmp ebx, dword [esp + 0x14]
je 0x46bee5
mov ebx, dword [ebx + 0x44]
jmp case.0x46be6a.3
and ecx, 0xfffffff8
sub edx, ecx
test ebx, ebx
jne 0x46be48
test edi, edi
jne 0x46bf6c
jmp 0x46bf66
test edi, edi
je 0x46bf60
lea eax, [edx + 8]
push ecx
jmp 0x46bf4e
and ecx, 0xfffffff8
mov eax, edx
sub eax, ecx
add eax, 8
push edx
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x44]
push esi
mov dword [esi + 0x28], eax
call fcn.0046c770
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x44]
push esi
mov dword [esi + 0x28], eax
call fcn.0046c770
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1c]
add eax, 8
mov dword [esi + 0x28], 0
push eax
push esi
mov dword [esi + 0x10], eax
call fcn.0046c770
add esp, 8
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xe8]
test eax, eax
je 0x46bf99
push esi
call eax
add esp, 4
push 1
call fcn.004b352a
jno 0x46bf60
inc esi
add byte [ecx - 0x7cffb942], cl
mov esi, 0xbea10046
inc esi
add byte [ecx - 0x42], dh
inc esi
add byte [ebx], bl
mov edi, 0xbe980046
inc esi
add byte [eax - 0x74ffb942], bl
inc esp
and al, 4
push esi
push edi
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x1c]
sub esi, 8
mov eax, dword [eax + 0x28]
cmp esi, edi
jbe 0x46c047
test eax, eax
je 0x46c047
mov ecx, eax
and ecx, 0xfffffffc
cmp dword [ecx + 0x48], 0
jge 0x46c007
mov ecx, edi
sub ecx, dword [eax + 0x48]
cmp esi, ecx
jae 0x46c007
mov ecx, dword [eax + 0x4c]
test ecx, ecx
jns 0x46c04c
mov eax, dword [eax + 0x44]
test eax, eax
je 0x46c047
mov ecx, eax
and ecx, 0xfffffffc
cmp dword [ecx + 0x48], 0
jl case.default.0x46c00f
mov edx, dword [esi + 4]
mov ecx, edx
and ecx, 7
jmp dword [ecx*4 + 0x46c068]
movzx edx, byte [edx - 3]
mov ecx, 0xfffffff8
shl edx, 3
sub ecx, edx
add esi, ecx
jmp 0x46c043
cmp esi, edi
ja 0x46bfd6
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, ecx
pop esi
ret
Function at 0x46f730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
movzx eax, byte [ebp + 0x24]
lea edx, [eax*4 + 0x14]
call fcn.0046fdb0
mov esi, eax
lea ecx, [ebp + 0x40]
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], ecx
mov word [esi + 5], 8
mov byte [esi + 7], 0
movzx ecx, byte [ebp + 0x25]
add ecx, 0x20
mov eax, ecx
shr eax, 3
and al, 0x20
sub cl, al
mov al, byte [ebp + 0x24]
mov byte [ebp + 0x25], cl
mov byte [esp + 0x18], al
movzx ecx, al
test al, al
je 0x46f7e1
push ebx
lea ebx, [esi + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov edx, 0x18
call fcn.0046fdb0
lea ebx, [ebx + 4]
lea ecx, [eax + 8]
mov word [eax + 5], 0x105
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx + edi*2]
inc edi
mov ecx, edx
shl edx, 0x18
shr ecx, 0xe
xor edx, ebp
and cl, 1
mov dword [eax + 0x14], edx
mov byte [eax + 7], cl
mov dword [ebx - 4], eax
cmp edi, esi
jb 0x46f792
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
pop ebx
mov byte [esi + 7], al
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x47c710
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov eax, dword [edx]
push esi
movzx esi, word [ebx + 6]
push edi
mov edi, dword [ebx + 0x20]
lea eax, [edi + eax*4]
mov dword [esp + 0x18], eax
mov eax, esi
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x1c]
lea ebp, [eax + ecx*4]
lea eax, [edx + 0xc]
mov dword [esp + 0x14], ebp
cmp eax, ebp
jne 0x47c74a
mov eax, dword [ebx + 0x18]
jmp 0x47c74c
mov eax, dword [eax]
cmp byte [ebx + 0x76], 0
lea eax, [edi + eax*4]
mov dword [esp + 0x24], eax
movzx eax, byte [edx + 8]
mov dword [esp + 0x10], eax
mov al, byte [edx + 6]
mov byte [esp + 0x30], al
movzx eax, al
mov dword [esp + 0x20], eax
jge 0x47c77b
mov ecx, dword [ebx + 0x18]
lea eax, [esi + 1]
mov word [ebx + 6], ax
jmp 0x47c785
mov ecx, dword [ebp - 0xc]
sub ebp, 0xc
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x34]
mov byte [ebx + 0x76], 0
mov dword [ebp], ecx
mov ax, word [ebx + 8]
mov word [ebp + 4], ax
mov al, byte [esp + 0x30]
mov byte [ebp + 6], al
movzx eax, byte [edx + 7]
mov byte [ebp + 7], al
mov byte [ebp + 9], 0
xor ebp, ebp
mov eax, dword [ebx + 0x20]
lea edi, [eax + ecx*4]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x10], eax
jbe 0x47c828
mov edx, dword [esp + 0x18]
mov ebx, dword [esi + eax*4]
mov esi, ebx
shr esi, 0x18
inc eax
mov edx, dword [edx + ebp*4]
mov edi, edx
shr edi, 0x18
cmp esi, edi
jae 0x47c7e3
mov dword [esp + 0x30], eax
jmp 0x47c80e
cmovne eax, dword [esp + 0x30]
movzx esi, dx
mov dword [esp + 0x30], eax
cmp esi, 0x8000
jb 0x47c80b
mov eax, dword [esp + 0x38]
and edx, 0xfffb0000
movzx eax, word [eax + esi*2]
or edx, eax
mov eax, dword [esp + 0x30]
inc ebp
mov ebx, edx
lea edx, [ecx + 1]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov dword [edi + ecx*4], ebx
mov ecx, edx
cmp ebp, dword [esp + 0x10]
jb 0x47c7c4
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
lea edx, [esi + eax*4]
mov esi, dword [edx]
mov eax, esi
shr eax, 0x18
cmp eax, ebp
jae 0x47c852
nop word [eax + eax]
mov dword [edi + ecx*4], esi
lea edx, [edx + 4]
mov esi, dword [edx]
inc ecx
mov eax, esi
shr eax, 0x18
cmp eax, ebp
jb 0x47c840
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov byte [eax + 8], cl
lea eax, [edi + ecx*4]
mov ecx, dword [esp + 0x10]
lea edx, [edx + ecx*4]
cmp edx, ebp
jae 0x47c87e
nop
mov ecx, dword [edx]
add edx, 4
mov dword [eax], ecx
add eax, 4
cmp edx, ebp
jb 0x47c870
sub eax, dword [ebx + 0x20]
pop edi
pop esi
sar eax, 2
pop ebp
mov dword [ebx + 0x18], eax
pop ebx
add esp, 0x18
ret
Function at 0x47d460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, ecx
push ebp
movzx ebp, word [ebx + 0x78]
lea edx, [ebx + 0x78]
push esi
mov al, byte [ebx + 0x94]
and al, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ebp
push edi
cmp al, 0xe
jne 0x47d4b8
movzx edx, word [ebx + 0x1bc]
cmp edx, ebp
jbe 0x47d4b4
movzx ecx, word [ebx + 0x1d8]
cmp ecx, ebp
jbe 0x47d4b4
nop
cmp ecx, edx
jb 0x47d634
mov eax, dword [ebx + 0x10]
movzx ecx, word [eax + ecx*8 + 6]
cmp ecx, ebp
ja 0x47d4a0
mov edx, dword [esp + 0x18]
movzx eax, word [ebx + 0x1da]
cmp eax, ebp
jbe 0x47d63e
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0x8000
lea eax, [esi + eax*8]
mov dword [esp + 0x34], eax
movzx eax, word [eax]
movzx ecx, word [esi + eax*8 + 2]
lea ebx, [esi + eax*8]
cmp edx, ebx
je 0x47d634
movzx edi, word [edx + 2]
cmp byte [esi + edi*8 + 5], 0x1e
lea edx, [esi + edi*8]
jne 0x47d504
movzx edi, word [edx]
lea edx, [esi + edi*8]
cmp byte [esi + ecx*8 + 5], 0x1e
lea ebp, [esi + ecx*8]
jne 0x47d515
movzx ecx, word [ebp]
lea ebp, [esi + ecx*8]
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0x7d]
mov byte [esp + 0x13], al
cmp al, 0x39
je 0x47d532
cmp al, 0x38
je 0x47d532
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x78]
jmp 0x47d53e
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x78]
movzx eax, word [esi + eax*8]
movzx eax, ax
mov dword [esp + 0x2c], eax
mov al, byte [ebx + 5]
cmp al, 0x39
je 0x47d555
cmp al, 0x38
je 0x47d555
movzx eax, word [ebx]
jmp 0x47d55c
movzx eax, word [ebx]
movzx eax, word [esi + eax*8]
movzx ebx, ax
cmp edi, ecx
je 0x47d603
cmp edi, 0x8000
jae 0x47d57b
cmp ecx, 0x8000
jb 0x47d61d
cmp byte [esp + 0x13], 0x38
jne 0x47d5f9
xor eax, eax
mov dword [esp + 0x1c], edi
cmp byte [edx + 5], 0x29
mov dword [esp + 0x20], eax
jne 0x47d5c3
movzx esi, word [edx + 2]
cmp si, word [esp + 0x24]
mov esi, dword [esp + 0x28]
jae 0x47d5bf
movzx eax, word [edx]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + 2]
mov edx, dword [esi + eax*8]
cmp dword [esp + 0x1c], ecx
jne 0x47d5b9
test edx, edx
jne 0x47d61d
mov eax, dword [esp + 0x20]
jmp 0x47d5c5
mov edx, eax
jmp 0x47d5c5
xor edx, edx
cmp byte [ebp + 5], 0x29
jne 0x47d5ed
movzx esi, word [ebp + 2]
cmp si, word [esp + 0x24]
mov esi, dword [esp + 0x28]
jae 0x47d5ed
movzx eax, word [ebp + 2]
movzx ecx, word [ebp]
mov eax, dword [esi + eax*8]
cmp edi, ecx
jne 0x47d5ed
test eax, eax
jne 0x47d61d
cmp dword [esp + 0x1c], ecx
jne 0x47d603
cmp edx, eax
je 0x47d603
jmp 0x47d61d
mov al, byte [ebp + 4]
xor al, byte [edx + 4]
test al, 0x1f
jne 0x47d61d
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x47d634
push ebx
push eax
push dword [esp + 0x1c]
call fcn.0047dde0
add esp, 0xc
test eax, eax
jne 0x47d634
mov eax, dword [esp + 0x34]
movzx eax, word [eax + 6]
cmp eax, dword [esp + 0x38]
jbe 0x47d63e
mov edx, dword [esp + 0x18]
jmp 0x47d4d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
Function at 0x47e420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], eax
push esi
push edi
movzx eax, word [ebp + eax*2 + 0x156]
cmp eax, ecx
jbe 0x47e494
mov edi, dword [ebp + 0x10]
mov dl, byte [edi + eax*8 + 4]
lea ebx, [edi + eax*8]
movzx eax, word [ebx]
and dl, 0x1f
cmp eax, ecx
je 0x47e4c1
test dl, dl
jne 0x47e48c
cmp word [esp + 0x1c], 0x41
movzx edx, word [edi + eax*8 + 2]
movzx esi, word [edi + ecx*8 + 2]
je 0x47e478
mov al, byte [edi + esi*8 + 4]
xor al, byte [edi + edx*8 + 4]
test al, 0x1f
jne 0x47e48c
cmp edx, esi
je 0x47e4b9
cmp edx, 0x8000
jae 0x47e4b9
cmp esi, 0x8000
jae 0x47e4b9
movzx eax, word [ebx + 6]
cmp eax, ecx
ja 0x47e445
mov eax, dword [esp + 0x10]
movzx eax, word [ebp + eax*2 + 0x146]
cmp eax, ecx
jbe 0x47e4b9
mov esi, dword [ebp + 0x10]
lea edx, [esi + eax*8]
movzx eax, word [edx]
cmp eax, ecx
je 0x47e4ce
movzx eax, word [edx + 6]
cmp eax, ecx
ja 0x47e4a7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
test byte [edx + 4], 0x1f
mov eax, 0
pop edi
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret

Function at 0x47f720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x68]
and eax, 0x10f0000
cmp eax, 0x10f0000
jne 0x47f83a
cmp word [esi + 0x1e6], 0
jne 0x47f764
cmp word [esi + 0x1e8], 0
jne 0x47f764
cmp word [esi + 0x1ea], 0
jne 0x47f764
cmp word [esi + 0x1ec], 0
je 0x47f83a
cmp dword [esi + 0x11c], 0
push ebx
push edi
jne 0x47f7a9
movzx eax, word [esi + 6]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x1c]
movzx edi, byte [eax + ecx*4 - 4]
lea edx, [eax + ecx*4]
mov ecx, dword [edx - 0xc]
mov eax, dword [esi + 0x20]
lea ebx, [eax + ecx*4]
xor ecx, ecx
test edi, edi
je 0x47f7a9
movzx edx, word [ebx + ecx*4]
cmp edx, 0x8000
jb 0x47f7a4
mov eax, dword [esi + 0x10]
or byte [eax + edx*8 + 4], 0x20
inc ecx
cmp ecx, edi
jb 0x47f790
push esi
call fcn.0047f910
add esp, 4
cmp dword [esi + 0x11c], 0
je 0x47f82f
push ebp
nop dword [eax]
mov eax, dword [esi + 0x10]
xor ebp, ebp
mov ecx, dword [esi + 8]
cmp byte [eax + ecx*8 - 3], 0x13
lea ecx, [eax + ecx*8]
lea eax, [ecx - 8]
jne 0x47f82e
mov edx, dword [esi + 0x10]
movzx ecx, word [eax]
mov bl, byte [edx + ecx*8 + 4]
lea edi, [edx + ecx*8]
movzx ecx, word [eax + 2]
mov bh, byte [edx + ecx*8 + 4]
lea edx, [edx + ecx*8]
mov cl, bl
xor cl, bh
test cl, 0x20
jne 0x47f800
mov cx, word [edi + 6]
cmp cx, word [edx + 6]
je 0x47f821
movzx edx, bl
or bl, 0x20
movzx ecx, bh
and edx, ecx
mov byte [edi + 4], bl
mov ecx, dword [esi + 0x10]
not edx
and edx, 0x20
or ebp, edx
movzx edx, word [eax + 2]
or byte [ecx + edx*8 + 4], 0x20
sub eax, 8
cmp byte [eax + 5], 0x13
je 0x47f7d5
test ebp, ebp
jne 0x47f7c0
pop ebp
push esi
call fcn.0047fc30
add esp, 4
pop edi
pop ebx
pop esi
ret
Function at 0x480560
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
movzx eax, word [ecx]
movzx ecx, word [ecx + 2]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
push edi
mov ebx, dword [esi + 8]
lea edi, [ebx - 1]
mov dword [esi + 8], edi
movzx ecx, word [ecx + eax*2]
movzx eax, word [ebp + eax*8 + 6]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp edi, dword [esi + 0x114]
jb 0x4805ad
mov ecx, esi
call fcn.00471b00
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov edx, 0x6300
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x10]
mov word [eax + edi*8 + 4], dx
mov edx, dword [esp + 0x20]
mov word [eax + edi*8], dx
mov word [eax + edi*8 + 2], cx
movzx eax, word [ebp + ebx*8 + 6]
mov ebp, dword [esi + 8]
mov dword [esp + 0x18], eax
cmp ebp, dword [esi + 0x114]
jb 0x4805e9
mov ecx, esi
call fcn.00471b00
lea eax, [ebp + 1]
mov ecx, 0x6300
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ebp*8 + 4], cx
mov ecx, dword [esp + 0x18]
mov word [eax + ebp*8], di
mov word [eax + ebp*8 + 2], cx
mov eax, dword [esp + 0x1c]
movzx edi, word [eax + ebx*2]
mov ebx, dword [esi + 8]
cmp ebx, dword [esi + 0x114]
jb 0x480623
mov ecx, esi
call fcn.00471b00
lea eax, [ebx + 1]
mov ecx, 0x6300
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov word [eax + ebx*8], bp
mov word [eax + ebx*8 + 2], di
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x480651
mov ecx, esi
call fcn.00471b00
lea eax, [edi + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + edi*8], bx
movzx ebx, di
mov ebp, ebx
lea ecx, [eax + edi*8]
mov eax, 0x5e13
mov word [ecx + 4], ax
mov ax, word [esp + 0x28]
mov word [ecx + 2], ax
mov eax, dword [esp + 0x24]
mov word [eax + 6], bx
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x480692
mov ecx, esi
call fcn.00471b00
lea ecx, [edi + 1]
mov eax, 0x1013
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x10]
mov word [ecx + edi*8 + 4], ax
mov eax, edi
mov word [ecx + edi*8], bx
mov word [ecx + edi*8 + 2], bp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x492df0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor esi, edi
rol esi, 4
bswap esi
cmp ecx, 0xc
jbe 0x492e70
mov eax, dword [esp + 0xc]
add ecx, 0xfffffff4
push ebx
push ebp
mov ebp, dword [esp + 0x20]
add ecx, ebp
mov dword [esp + 0x1c], ecx
mov ebx, ecx
nop
add esi, dword [ebx + 4]
add edi, dword [ebx + 8]
mov edx, esi
add eax, dword [ebx]
xor edi, esi
rol edx, 0xe
mov ebx, ebp
sub edi, edx
add ebp, 0xc
mov ecx, edi
xor eax, edi
rol ecx, 0xb
sub eax, ecx
mov edx, eax
xor esi, eax
ror edx, 7
sub esi, edx
cmp ebx, dword [esp + 0x1c]
jb 0x492e20
mov ecx, esi
mov edx, esi
rol ecx, 0x10
xor edx, edi
sub edx, ecx
mov ecx, edx
xor eax, edx
rol ecx, 4
sub eax, ecx
pop ebp
mov ecx, eax
xor eax, esi
pop ebx
rol ecx, 0xe
pop edi
sub eax, ecx
pop esi
ret
pop edi
mov eax, esi
pop esi
ret
Function at 0x495820
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
or ecx, 0xffffffff
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x495863
mov eax, dword [ebx]
test eax, eax
je 0x495852
mov edx, dword [esp + 0x24]
bsf ecx, eax
cmp ecx, edx
jb 0x49585b
mov ecx, edx
shr eax, cl
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
shr eax, cl
sub edx, ecx
mov dword [ebx], eax
jmp 0x495867
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov eax, 1
push ebp
cmp edx, 0x12
jbe 0x495906
mov eax, dword [esp + 0x2c]
mov ebp, eax
shr ebp, 0x18
and al, 0x30
lea ecx, [ebp - 1]
mov dword [esp + 0x18], ecx
cmp al, 0x20
jne 0x4958ad
mov eax, 0x38e38e39
mov ebp, 0x3f
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x495920
bsr ecx, dword [ebx + esi*4]
imul eax, esi, 0x1d
sub eax, edx
add eax, ecx
mov ecx, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x50ada0]
cvttsd2si eax, xmm0
sub ecx, eax
mov eax, 0x38e38e39
sub ecx, ebp
imul ecx
mov eax, dword [esp + 0x18]
mov ecx, esi
sar edx, 1
mov ebp, edx
add edx, 0x3e
shr ebp, 0x1f
add ebp, edx
cdq
and edx, 7
mov dword [esp + 0x14], ebp
add eax, edx
sar eax, 3
sub ecx, eax
add ecx, 0x3d
mov dword [esp + 0x10], ecx
jmp 0x495920
or ecx, 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], ecx
cmp edx, 9
jb 0x4959ae
nop
mov ecx, dword [ebx + esi*4]
mov edx, esi
mov eax, ecx
and ecx, 0x1ff
shr eax, 9
imul ebp, ecx, 0x1dcd65
mov dword [ebx + esi*4], eax
cmp esi, edi
je 0x495961
nop dword [eax]
dec edx
and edx, 0x3f
mov ecx, dword [ebx + edx*4]
mov eax, ecx
shr eax, 9
and ecx, 0x1ff
add eax, ebp
imul ebp, ecx, 0x1dcd65
mov dword [ebx + edx*4], eax
cmp edx, edi
jne 0x495940
mov eax, dword [esp + 0x10]
cmp edi, dword [esp + 0x14]
je 0x495982
cmp edi, eax
je 0x495982
test ebp, ebp
je 0x49597a
dec edi
and edi, 0x3f
mov dword [ebx + edi*4], ebp
cmp dword [ebx + esi*4], 0
jne 0x495995
jmp 0x49598c
cmp dword [ebx + esi*4], 0
jne 0x495995
cmp esi, edi
je 0x495a0b
dec esi
and esi, 0x3f
dec eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
sub edx, 9
mov dword [esp + 0x24], edx
cmp edx, 9
jae 0x495920
mov eax, 1
test edx, edx
je 0x495a0b
mov ebp, dword [ebx + esi*4]
mov ecx, edx
shl eax, cl
dec eax
mov dword [esp + 0x14], eax
mov eax, 0x3b9aca00
sar eax, cl
mov dword [esp + 0x10], eax
mov eax, ebp
and ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x10]
shr eax, cl
mov dword [ebx + esi*4], eax
cmp esi, edi
je 0x495a00
mov ecx, dword [esp + 0x24]
dec esi
and esi, 0x3f
mov edx, dword [ebx + esi*4]
mov eax, edx
shr eax, cl
add eax, ebp
mov ebp, edx
and ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x10]
mov dword [ebx + esi*4], eax
cmp esi, edi
jne 0x4959e1
test ebp, ebp
je 0x495a0b
dec edi
and edi, 0x3f
mov dword [ebx + edi*4], ebp
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4a11a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov ecx, dword [ebx + 0x10]
mov edi, 1
lea esi, [ecx + eax*8]
cmp esi, dword [ebx + 0x14]
jae 0x4a11fe
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
call fcn.00494580
add esp, 0xc
test eax, eax
je 0x4a120f
test edi, edi
je 0x4a11f4
push ebp
push dword [esp + 0x18]
push 1
push eax
call fcn.004b4840
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x4a11f4
mov edi, 1
jmp 0x4a11f6
xor edi, edi
add esi, 8
cmp esi, dword [ebx + 0x14]
jb 0x4a11c0
push 0
push edi
push ebx
call fcn.0049af00
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
sub esi, dword [ebx + 0x10]
sar esi, 3
push 4
inc esi
push esi
push ebx
call fcn.0046c0b0
int3