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

Disassembly:
mov eax, 0x10
call fcn.004ff310
push ebx
push esi
push edi
lea eax, [esp + 0x14]
xor esi, esi
push eax
lea eax, [esp + 0x10]
xor edi, edi
push eax
push esi
call fcn.00463480
add esp, 0xc
test eax, eax
je 0x47347b
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
shl eax, 0xa
test ebx, eax
je 0x4732ac
inc edi
lea eax, [esp + 0x14]
inc esi
push eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00463480
add esp, 0xc
test eax, eax
jne 0x4732a0
test edi, edi
je 0x47347b
mov ecx, dword [esp + 0x50]
mov eax, ecx
cdq
idiv edi
push ebp
mov ebp, dword [esp + 0x58]
mov esi, eax
xor eax, eax
mov dword [esp + 0x14], esi
cmp edi, 1
mov edi, dword [esp + 0x60]
push edi
push eax
cmove ecx, eax
push ebp
mov dword [esp + 0x60], ecx
call fcn.00500bb0
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00463480
add esp, 0x18
test eax, eax
je 0x473446
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x473422
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x473453
push edi
push ebx
push dword [esp + 0x54]
mov eax, dword [esp + 0x60]
push dword [esp + 0x54]
and eax, 1
push dword [esp + 0x54]
add eax, esi
mov esi, dword [esp + 0x64]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push eax
push esi
push ecx
call fcn.004734a0
add esp, 0x3c
test eax, eax
je 0x473471
add esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x47341e
cmp edi, 0x20
jb 0x4733fb
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x4733b0
cmp edx, ebx
jae 0x4733fb
mov eax, edi
and eax, 0x8000001f
jns 0x4733be
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x4733d0
cmp ecx, edi
jge 0x47341e
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x473410
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.00463480
add esp, 0xc
test eax, eax
jne 0x473320
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.0052dd20
add esp, 0x14
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.0052dd20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x478521
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x478534
xor eax, eax
jmp 0x4785d7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x478573
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x4785d5
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004784d1
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4785d3
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4785d7
jmp 0x47856a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x485500
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [eax + 4], 0
je 0x48555f
push edi
mov edi, dword [eax + 0x28]
test edi, edi
je 0x48555e
push ebx
call fcn.00485100
xor ebx, ebx
test edi, edi
je 0x48555d
push esi
lea esi, [eax + 1]
nop word [eax + eax]
lea ecx, [edi - 1]
xor edx, edx
mov eax, 0xff
lea esi, [esi + 4]
div ecx
movzx ecx, bl
inc ebx
movzx eax, al
imul eax, ecx
mov byte [esi - 3], al
mov byte [esi - 4], al
mov byte [esi - 5], al
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x28]
cmp ebx, edi
jb 0x485530
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4871b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4871be
pop ebp
ret 0xc
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005158c3
add esp, 0x10
pop ebp
ret 0xc
Function at 0x490c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov edx, 1
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x420], eax
mov eax, 1
shl ax, cl
mov dword [edi + 0x41c], ecx
dec ax
mov dword [edi + 0x410], ecx
dec ecx
shl edx, cl
mov ecx, edi
mov word [edi + 0x414], ax
mov dword [edi + 0x418], 0
mov dword [edi + 0x3bc], 0
lea eax, [edx + 1]
mov dword [edi + 0x3b8], 0
mov dword [edi + 0x428], eax
lea eax, [edx + 2]
mov dword [edi + 0x424], edx
mov word [edi + 0x416], ax
mov dword [edi + 0x42c], 0
call fcn.00490ae0
mov esi, eax
xor edx, edx
mov dword [ebp + 8], esi
mov ecx, 0x138b
nop dword [eax]
add ecx, ecx
inc edx
cmp ecx, 0x10000
jl 0x490d00
mov eax, 8
mov ecx, edi
sub eax, edx
push 0x138b
mov dword [ebp - 4], eax
call fcn.00490bb0
movzx eax, word [edi + 0x424]
mov ecx, edi
push eax
call fcn.00491c10
mov ecx, edi
call fcn.00490ae0
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x490e31
push ebx
mov ecx, dword [ebp - 4]
mov ebx, eax
mov edx, dword [ebp + 8]
shl ebx, 0xc
add ebx, esi
movsx esi, ax
mov eax, dword [edi + 0x408]
shl esi, cl
xor esi, edx
mov eax, dword [eax + esi*4]
cmp eax, ebx
jne 0x490d77
mov eax, dword [edi + 0x40c]
movzx esi, word [eax + esi*2]
mov dword [ebp + 8], esi
jmp 0x490e1d
test eax, eax
js 0x490dae
mov ecx, 0x138b
mov eax, 1
sub ecx, esi
test esi, esi
cmove ecx, eax
nop dword [eax]
mov eax, esi
sub eax, ecx
lea esi, [eax + 0x138b]
cmovns esi, eax
mov eax, dword [edi + 0x408]
mov eax, dword [eax + esi*4]
cmp eax, ebx
je 0x490d65
test eax, eax
jg 0x490d90
push edx
mov ecx, edi
call fcn.00491c10
movzx ecx, word [edi + 0x416]
mov eax, 0x1000
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], edx
cmp cx, ax
jge 0x490deb
mov eax, dword [edi + 0x40c]
mov word [eax + esi*2], cx
mov eax, dword [edi + 0x408]
inc word [edi + 0x416]
mov dword [eax + esi*4], ebx
mov esi, edx
jmp 0x490e1d
push 0x138b
mov ecx, edi
call fcn.00490bb0
movzx ecx, word [edi + 0x424]
push ecx
mov dword [edi + 0x418], 1
lea eax, [ecx + 2]
mov ecx, edi
mov word [edi + 0x416], ax
call fcn.00491c10
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.00490ae0
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x490d44
pop ebx
push esi
mov ecx, edi
call fcn.00491c10
movzx eax, word [edi + 0x428]
mov ecx, edi
push eax
call fcn.00491c10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x49dd60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x49dd98
cmp dword [ebp + 0xc], 0xf0
jae 0x49dd88
push eax
call fcn.004a39c0
push 2
call fcn.004a3910
add esp, 8
mov dword [esi], eax
push 0xf0
push 0
push eax
call fcn.00500bb0
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x4a1700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62acc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov cl, byte [eax + 8]
mov byte [ebp - 0x15], cl
cmp cl, 3
je 0x4a18e9
push ebx
mov ebx, dword [eax]
xor edx, edx
push edi
movzx edi, byte [eax + 9]
test cl, 2
mov eax, dword [ebp + 0x10]
mov ecx, edi
je 0x4a1763
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, edi
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [ebp - 0xc], ecx
lea ecx, [edx + 3]
jmp 0x4a1771
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x4a178b
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
sub edi, eax
mov dword [ebp + ecx*4 - 0x14], edi
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
je case.0x4a17d3.3
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x4a17a6
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x4a17ab
mov edx, 1
inc eax
cmp eax, ecx
jl 0x4a1795
test dx, dx
je case.0x4a17d3.3
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4a17d3.3
movzx eax, byte [eax + 0x4a190c]
jmp dword [eax*4 + 0x4a18f8]
mov ecx, dword [edx + 4]
test ecx, ecx
je case.0x4a17d3.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
sub ecx, 1
jne 0x4a17e5
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov ebx, 0xf0
mov edx, dword [edx + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x4a17d3.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x14]
and al, bl
mov byte [esi - 1], al
sub edx, 1
jne 0x4a1828
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x4a17d3.3
nop word [eax + eax]
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x4a1860
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je case.0x4a17d3.3
mov edi, 0x100
nop dword [eax]
xor edx, edx
lea esi, [esi + 1]
div ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 1]
movzx eax, di
mov edi, ecx
imul edi, eax
movzx eax, byte [esi - 1]
movzx ecx, word [ebp + edx*4 - 0x14]
add di, ax
shr di, cl
movzx ecx, di
mov edi, 0x100
mov eax, ecx
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x4a18a0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret
Function at 0x4a2680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a269a
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4a269a
push dword [ebp + 0xc]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4ad040
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x4ad077
push esi
call fcn.004ad230
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4ad06e
pop edi
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
jmp 0x4ad082
cmp eax, 0xcb
jne 0x4ad0fe
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4ad0e8
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x4ad09f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x4ad0e2
cmp eax, 2
je 0x4ad0e8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ad090
cmp eax, 3
je 0x4ad0c7
cmp eax, 1
jne 0x4ad090
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4ad090
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4ad090
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004ad130
add esp, 4
pop edi
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x4ad120
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.004ad130
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x4ad130
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0xcc
lea edi, [esi + 0x190]
mov dword [ebp + 8], edi
lea ebx, [esi + 0x78]
je 0x4ad167
mov eax, dword [edi]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebx], 0
mov dword [esi + 0x14], 0xcc
jmp 0x4ad16a
mov dword [ebp + 8], edi
mov eax, dword [edi]
cmp byte [eax + 8], 0
je 0x4ad1e2
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4ad1c2
nop dword [eax]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ad19e
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x194]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x4ad1f9
cmp eax, dword [esi + 0x60]
jb 0x4ad180
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [edi]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [edi]
cmp byte [eax + 8], 0
jne 0x4ad172
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x4b7de0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
mov edx, dword [esi + 0x4c]
cmp edx, 1
mov ebx, dword [esi + 0x1b8]
sete al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edx
mov byte [ebx + 0x1c], al
mov eax, 0x2fe
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
cmovne eax, edi
push eax
push 1
push esi
mov eax, dword [ecx + 8]
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x4b7ef3
mov ecx, dword [ebx + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4b7e51
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push esi
call fcn.004b8180
add esp, 0x10
mov edx, eax
xor esi, esi
nop
cmp esi, edx
jle 0x4b7e8d
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.004b8180
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x4b7e74
mov ecx, dword [ebp - 0xc]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 8]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x4b7e70
cmp dword [ebp - 4], 1
jne 0x4b7ee0
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax + eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x4b7ec0
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x64]
jl 0x4b7e34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fb910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
lea ebx, [edi + 0x38]
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ecx, dword [edi + 0x74]
add eax, esi
mov edx, dword [edi + 0x6c]
sub ecx, edx
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ecx
cmp edx, eax
jb 0x4fb9bb
mov ecx, dword [ebx]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00500630
mov ebx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea edx, [eax + ebx*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub ebx, 1
jne 0x4fb963
mov eax, dword [edi + 0x40]
mov ebx, esi
lea edx, [eax + esi*2]
nop
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub ebx, 1
jne 0x4fb990
mov ecx, dword [ebp - 8]
mov edx, dword [edi + 0x6c]
add ecx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4fbaa7
mov eax, dword [ebp + 8]
push ecx
mov eax, dword [eax]
add eax, dword [edi + 0x74]
add eax, edx
push eax
push ebx
call fcn.004fbd60
mov ebx, dword [edi + 0x74]
add esp, 0xc
add ebx, eax
mov dword [ebp - 8], ebx
mov dword [edi + 0x74], ebx
cmp ebx, 3
jb 0x4fba23
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
movzx edx, byte [eax + ebx]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + ebx + 1]
mov ebx, dword [ebp - 8]
shl edx, cl
xor edx, eax
mov eax, dword [edi + 0x6c]
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
mov edx, dword [ebp - 4]
cmp ebx, 0x106
jae 0x4fba3b
jmp 0x4fba28
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4fba38
mov ebx, dword [ebp + 8]
jmp 0x4fb922
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x16c0]
mov esi, dword [edi + 0x3c]
cmp ecx, esi
jae 0x4fbaa7
add ebx, eax
cmp ecx, ebx
jae 0x4fba79
mov eax, 0x102
sub esi, ebx
cmp esi, eax
cmova esi, eax
lea eax, [edx + ebx]
push esi
push 0
push eax
call fcn.00500bb0
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x4fbaa7
sub ebx, ecx
sub esi, ecx
lea eax, [ebx + 0x102]
cmp eax, esi
cmovbe esi, eax
lea eax, [ecx + edx]
push esi
push 0
push eax
call fcn.00500bb0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fbdd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4fbddc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004fbdf0
Function at 0x4ff8a3
Capabilities:
Parse pe header

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

Function at 0x5160be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004ff310
mov eax, dword [0x62acc0]
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.0051a83d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x516100
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x51625c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ff260
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 + 0x913328]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005211df
mov ecx, dword [esi*4 + 0x913328]
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 0x516255
cmp eax, dword [ecx + edi + 0x24]
jne 0x516255
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 0x516255
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005211df
add esp, 0x14
test edx, edx
jl 0x516255
jg 0x5161cb
test eax, eax
jb 0x516255
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x516255
jl 0x5161e5
cmp dword [ebp - 0x1008], eax
ja 0x516255
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x516203
test ebx, ebx
je 0x51623c
cmp ecx, edi
jae 0x51623c
mov al, byte [ecx]
cmp al, 0xd
jne 0x51621d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x516229
cmp byte [ecx + 1], 0xa
jne 0x516229
inc ecx
jmp 0x516229
movzx eax, al
movsx eax, byte [eax + 0x62b0d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x516203
cmp edx, ebx
jne 0x516203
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x51625a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004fe8dc
leave
ret

Function at 0x51ae06
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d6780
push 0x5d6778
push str.FlsAlloc
push 0x1f
call fcn.0051acc5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51ae3a
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0620]
call esi
jmp 0x51ae40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x51ae84
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d6790
push 0x5d6788
push str.FlsGetValue
push 0x21
call fcn.0051acc5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51aebb
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0620]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x51aec3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d6798
push 0x5d6790
push str.FlsSetValue
push 0x22
call fcn.0051acc5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51aefd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a0620]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]